Commit Graph

16 Commits

Author SHA1 Message Date
Petr Štetiar
79f78c0e77 kmod: fix build failure in install step over dirty build dir
When building kmod-32 package for the first time (clean build_dir), it
builds and installs fine. When building for 2nd time, sometimes
(probably some race condition?) it fails to build in install step with
following error:

  for tool in insmod lsmod rmmod depmod modprobe modinfo; do \
  	ln -s kmod /tmp/build_dir/target-aarch64_cortex-a73+neon-vfpv4_musl/kmod-32/ipkg-install/usr/bin/$tool; \
  done
  ln: failed to create symbolic link '/tmp/build_dir/target-aarch64_cortex-a73+neon-vfpv4_musl/kmod-32/ipkg-install/usr/bin/insmod': File exists
  ln: failed to create symbolic link '/tmp/build_dir/target-aarch64_cortex-a73+neon-vfpv4_musl/kmod-32/ipkg-install/usr/bin/lsmod': File exists
  ln: failed to create symbolic link '/tmp/build_dir/target-aarch64_cortex-a73+neon-vfpv4_musl/kmod-32/ipkg-install/usr/bin/rmmod': File exists
  ln: failed to create symbolic link '/tmp/build_dir/target-aarch64_cortex-a73+neon-vfpv4_musl/kmod-32/ipkg-install/usr/bin/depmod': File exists
  ln: failed to create symbolic link '/tmp/build_dir/target-aarch64_cortex-a73+neon-vfpv4_musl/kmod-32/ipkg-install/usr/bin/modprobe': File exists
  ln: failed to create symbolic link '/tmp/build_dir/target-aarch64_cortex-a73+neon-vfpv4_musl/kmod-32/ipkg-install/usr/bin/modinfo': File exists

Lets fix it by backporting upstream fix.

Fixes: #27171
Link: https://lore.kernel.org/r/20240306145804.135709-1-lucas.de.marchi@gmail.com
Upstream-Status: Backport [c5054b2150]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2025-08-06 14:38:38 +02:00
Rosen Penev
686e1d0941 kmod: update to 32
Add patch to fix compilation with GCC 14.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-05-14 16:38:05 -07:00
Fabrice Fontaine
5afe5c9031 treewide: assign PKG_CPE_ID
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2024-02-04 16:16:10 -08:00
Nick Hainke
ca057f3e4e kmod: update to 31
Release Notes:
aff617ea87/NEWS (L1)

Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-10-10 15:36:55 +02:00
Nick Hainke
37c6617f76 kmod: update to 30
Release Notes:
- https://github.com/kmod-project/kmod/releases/tag/v28
- https://github.com/kmod-project/kmod/releases/tag/v29
- https://github.com/kmod-project/kmod/releases/tag/v30

Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-04-26 09:27:36 +03:00
Rosen Penev
5af59188f6 kmod: fix wrong paths in pkgconfig files
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-10 01:50:28 -08:00
Rosen Penev
d69af229cc kmod: update to 27
Remove outdated patch.

Small Makefile cleanups.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-09-03 13:51:37 -07:00
Kuan-Yi Li
f40a0cf5e4 kmod: fix ALTERNATIVES
ALTERNATIVES shall be defined in the package where /sbin/kmod resides --
otherwise kmod tools will break if we install only the library as these
tools will be linked to a nonexistent executable.

Signed-off-by: Kuan-Yi Li <kyli@abysm.org>
2020-06-18 16:41:51 +08:00
Huangbin Zhan
8a2420a251 kmod: add ALTERNATIVES
Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
2020-06-10 06:38:01 +08:00
Sven Eckelmann
bbb1ea7345 treewide: Change .*GPL.*+ licenses to SPDX compatible identifier
The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL
licenses. But a lot of packages did use a different, non-SPDX style with a
"+" at the end instead of "-or-later".

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-09-10 07:45:15 +02:00
Yousong Zhou
da1912f868 treewide: use mirror tag @KERNEL where applicable
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-09 17:05:53 +08:00
Etienne Champetier
4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Steven Barth
704e2f8d89 kmod: fixup automadness
Signed-off-by: Steven Barth <steven@midlink.org>
2015-03-11 08:56:44 +01:00
Jeff Waugh
fb36bf7286 kmod: Update to kmod 20, enable parallel build
Signed-off-by: Jeff Waugh <jdub@bethesignal.org>
2015-03-06 07:38:32 +11:00
Nicolas Thill
1f3925de20 kmod: fix pkgconfig file
The pkgconfig file is generated at make-time, leading to absolute /usr/include & /usr/lib search paths.
The patch lets autoconf handle pkgconfig file subst, like other packages do.

Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-03-09 03:44:26 +01:00
Jeff Waugh
bf50189495 kmod: Add kmod package
- libkmod for programmatic control of Linux modules
- kmod for administrative control of Linux modules,
  symlinks for the familiar module-init-tools suite

Signed-off-by: Jeff Waugh <jdub@bethesignal.org>
2015-02-19 00:35:27 +11:00