[Lunar-commits] <lunar-iso> Use the correct module list variables

Peter de Ridder peter at lunar-linux.org
Thu Apr 11 00:32:21 CEST 2013


commit 04bb0a88bfd9a5f2bb240141a64fdee0a29a4452
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Tue, 30 Oct 2012 08:16:06 -0700
URL: https://github.com/lunar-linux/lunar-iso/commit/04bb0a88bfd9a5f2bb240141a64fdee0a29a4452

Use the correct module list variables
---
  mkfiles/stage1.mk | +5/-3     
  mkfiles/stage2.mk | +3/-3     
  2 files changed, 8 insertions(+), 6 deletions(-)

--- a/mkfiles/stage1.mk
+++ b/mkfiles/stage1.mk
@@ -27,20 +27,22 @@ stage1-moonbase: $(ISO_TARGET)/.stage1-moonbase
 
 
 # first build sequence to get the toolchain installed properly
+TOOLCHAIN_MODULES=kernel-headers glibc binutils gcc binutils glibc
+
 $(ISO_TARGET)/.stage1-toolchain: stage1-moonbase stage1-spool
 	@echo stage1-toolchain
-	@yes n | tr -d '\n' | $(ISO_SOURCE)/scripts/chroot-build lin -rc kernel-headers glibc binutils gcc binutils glibc
+	@yes n | tr -d '\n' | $(ISO_SOURCE)/scripts/chroot-build lin -rc $(TOOLCHAIN_MODULES)
 	@touch $@
 
 stage1-toolchain: $(ISO_TARGET)/.stage1-toolchain
 
 
 # first time build all the require modules for a minimal system
-STAGE1_MODULES=acl attr bash bzip2 coreutils cracklib dialog diffutils e2fsprogs file findutils gawk glib-2 gmp grep gzip installwatch less libcap libffi libmpc lunar make mpfr ncurses net-tools patch pcre perl procps readline sed shadow tar util-linux wget xz zlib
+STAGE1_MODULES=acl attr bash binutils bzip2 coreutils cracklib dialog diffutils e2fsprogs file findutils gawk gcc glibc glib-2 gmp grep gzip installwatch kernel-headers less libcap libffi libmpc lunar make mpfr ncurses net-tools patch pcre perl procps readline sed shadow tar util-linux wget xz zlib
 
 $(ISO_TARGET)/.stage1: stage1-toolchain
 	@echo stage1-build
-	@yes n | tr -d '\n' | $(ISO_SOURCE)/scripts/chroot-build lin -rc $(STAGE1_MODULES)
+	@yes n | tr -d '\n' | $(ISO_SOURCE)/scripts/chroot-build lin -rc $(filter-out $(TOOLCHAIN_MODULES),$(STAGE1_MODULES))
 	@touch $@
 
 stage1-build: $(ISO_TARGET)/.stage1
--- a/mkfiles/stage2.mk
+++ b/mkfiles/stage2.mk
@@ -81,12 +81,12 @@ stage2-moonbase: $(ISO_TARGET)/.stage2-moonbase
 
 
 # build all the require modules for the iso
-STAGE2_MODULES=kernel-headers pkgconfig xz gettext attr acl gawk sed ncurses readline zlib cracklib libcap util-linux e2fsprogs libffi gmp bzip2 glib-2 wget shadow coreutils net-tools gzip mpfr procps file bash dialog diffutils findutils grep installwatch less tar patch libmpc binutils glibc lunar gcc make
+STAGE2_MODULES=kernel-headers glibc gcc binutils pkgconfig xz gettext attr acl gawk sed ncurses readline zlib cracklib libcap util-linux e2fsprogs libffi gmp bzip2 glib-2 wget shadow coreutils net-tools gzip mpfr procps file bash dialog diffutils findutils grep installwatch less tar patch libmpc lunar make
 
 $(ISO_TARGET)/.stage2: stage2-moonbase stage2-spool
 	@echo stage2-build
-	@yes n | tr -d '\n' | $(ISO_SOURCE)/scripts/chroot-build lin -c kernel-headers glibc gcc binutils
-	@yes n | tr -d '\n' | $(ISO_SOURCE)/scripts/chroot-build lin -c $(STAGE1_MODULES)
+	#@yes n | tr -d '\n' | $(ISO_SOURCE)/scripts/chroot-build lin -c kernel-headers glibc gcc binutils
+	@yes n | tr -d '\n' | $(ISO_SOURCE)/scripts/chroot-build lin -c $(STAGE2_MODULES)
 	@touch $@
 
 stage2-build: $(ISO_TARGET)/.stage2




More information about the Lunar-commits mailing list