Skip to content

Commit

Permalink
Added module exclude list for stage2
Browse files Browse the repository at this point in the history
  • Loading branch information
cavalier38 committed Nov 5, 2012
1 parent 4fc8801 commit 22a65df
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions conf/modules.exclude
@@ -0,0 +1 @@
EXCLUDE_MODULES=udev
1 change: 1 addition & 0 deletions conf/modules.exclude.x86_64
@@ -0,0 +1 @@
EXCLUDE_MODULES+=grub
4 changes: 2 additions & 2 deletions mkfiles/kernel.mk
Expand Up @@ -3,9 +3,9 @@
kernel: linux


$(ISO_TARGET)/var/cache/lunar/linux-$(ISO_BUILD).tar.bz2: stage2
$(ISO_TARGET)/var/cache/lunar/linux-$(ISO_ARCH).tar.bz2: stage2
cp $(ISO_SOURCE)/kernels/conf/generic $(ISO_TARGET)/etc/lunar/local/.config.current
yes n | tr -d '\n' | $(ISO_SOURCE)/scripts/chroot-build lin -c linux
mv $(ISO_TARGET)/var/cache/lunar/linux-$$($(ISO_SOURCE)/scripts/chroot-build lvu installed linux)-$(ISO_BUILD).tar.bz2 $@

linux: $(ISO_TARGET)/var/cache/lunar/linux-$(ISO_BUILD).tar.bz2
linux: $(ISO_TARGET)/var/cache/lunar/linux-$(ISO_ARCH).tar.bz2
4 changes: 3 additions & 1 deletion mkfiles/stage2.mk
Expand Up @@ -89,10 +89,12 @@ ifneq ($(MAKECMDGOALS),clean)
endif
include $(ISO_SOURCE)/conf/modules.stage2
include $(ISO_SOURCE)/conf/modules.kernel
include $(ISO_SOURCE)/conf/modules.exclude
-include $(ISO_SOURCE)/conf/modules.exclude.$(ISO_ARCH)

$(ISO_TARGET)/.stage2: stage2-moonbase stage2-spool $(ISO_SOURCE)/conf/modules.all
@echo stage2-build
@yes n | tr -d '\n' | $(ISO_SOURCE)/scripts/chroot-build lin -c $(STAGE2_MODULES) `$(ISO_SOURCE)/scripts/chroot-build lsh sort_by_dependency $(filter-out $(KERNEL_MODULES) $(STAGE2_MODULES),$(ALL_MODULES))`
@yes n | tr -d '\n' | $(ISO_SOURCE)/scripts/chroot-build lin -c $(STAGE2_MODULES) `$(ISO_SOURCE)/scripts/chroot-build lsh sort_by_dependency $(filter-out $(KERNEL_MODULES) $(STAGE2_MODULES) $(EXCLUDE_MODULES),$(ALL_MODULES))`
@touch $@

stage2-build: $(ISO_TARGET)/.stage2
2 changes: 1 addition & 1 deletion template/etc/lunar/local/config
Expand Up @@ -27,4 +27,4 @@ SAFE_OPTIMIZATIONS=on
LUNAR_ALIAS_SSL="openssl"
LUNAR_ALIAS_KERNEL_HEADERS="kernel-headers"
LUNAR_ALIAS_KMOD="kmod"
LUNAR_ALIAS_UDEV="udev"
LUNAR_ALIAS_UDEV="systemd"

0 comments on commit 22a65df

Please sign in to comment.