summaryrefslogtreecommitdiff
path: root/sub
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-04-05 11:04:35 +0000
committerLaurent Bercot <ska@appnovation.com>2024-04-05 11:04:35 +0000
commit949648c6899ae3a06a4825267076c2ef71933395 (patch)
tree5c5c2e9f54c0673c15977fd32457cc1357d366e5 /sub
parent3efd7b95a19e8fbcfc9f67e09389ba3405f313b8 (diff)
downloadlh-bootstrap-949648c6899ae3a06a4825267076c2ef71933395.tar.xz
Try to fix kmod
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'sub')
-rw-r--r--sub/kmod/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/sub/kmod/Makefile b/sub/kmod/Makefile
index 81b8016..c8d7850 100644
--- a/sub/kmod/Makefile
+++ b/sub/kmod/Makefile
@@ -8,7 +8,7 @@ KMOD_TARLETTER := J
# Do not use --enable-static or --disable-shared: the kmod configure script is voluntarily broken.
# Use make variables instead to link kmod statically.
-KMOD_CONFIGURE_OPTIONS := --with-gnu-ld --disable-gtk-doc-html --with-xz --disable-manpages --with-bashcompletiondir=$(OUTPUT)/build-build/opt/$(KMOD_NAME)-$(KMOD_VERSION)/bash-completions
+KMOD_CONFIGURE_OPTIONS := --disable-option-checking --disable-maintainer-mode --with-rootlibdir=$(OUTPUT)/rootfs --with-module-directory=$(OUTPUT)/rootfs/lib/modules --with-gnu-ld --disable-gtk-doc-html --with-xz --disable-manpages --disable-test-modules --disable-logging --with-bashcompletiondir=$(OUTPUT)/build-build/opt/$(KMOD_NAME)-$(KMOD_VERSION)/bash-completions
KMOD_CFLAGS := -I$(OUTPUT)/build-build/opt/xz/include
KMOD_LDFLAGS := -L$(OUTPUT)/build-build/opt/xz/lib
KMOD_LIBS := -llzma
@@ -38,6 +38,4 @@ $(OUTPUT)/build-build/.lh_$(KMOD_NAME)_built: $(OUTPUT)/build-build/.lh_$(KMOD_N
$(OUTPUT)/build-build/.lh_$(KMOD_NAME)_installed: $(OUTPUT)/build-build/.lh_$(KMOD_NAME)_built | $(OUTPUT)/tmp/.lh_prepared $(OUTPUT)/build-build/.lh_skarnet_installed
exec setuidgid $(NORMALUSER) cd $(OUTPUT)/build-build/opt/$(KMOD_NAME)-$(KMOD_VERSION)/src $(MAKE) install CC="$(BUILD_CC)"
exec setuidgid $(NORMALUSER) makenamelink $(OUTPUT)/build-build/opt $(KMOD_NAME) $(KMOD_NAME)-$(KMOD_VERSION) $(OUTPUT)/tmp
- exec setuidgid $(NORMALUSER) rm -f $(OUTPUT)/build-build/opt/$(KMOD_NAME)-$(KMOD_VERSION)/bin/depmod
- exec setuidgid $(NORMALUSER) s6-ln -s kmod $(OUTPUT)/build-build/opt/$(KMOD_NAME)-$(KMOD_VERSION)/bin/depmod
exec setuidgid $(NORMALUSER) s6-touch $@