Changeset 1994
- Timestamp:
- 07/29/07 13:23:06 (1 year ago)
- Files:
-
- branches/minimal/Makefile (modified) (7 diffs)
- branches/minimal/isolinux/isolinux.cfg (modified) (1 diff)
- branches/minimal/isolinux/options.msg (modified) (1 diff)
- branches/minimal/packages/LFS-BOOK/Makefile (modified) (2 diffs)
- branches/minimal/packages/bin86/Makefile (modified) (2 diffs)
- branches/minimal/packages/binutils/Makefile (modified) (3 diffs)
- branches/minimal/packages/gcc/Makefile (modified) (3 diffs)
- branches/minimal/packages/glibc/Makefile (modified) (1 diff)
- branches/minimal/packages/initramfs/Makefile (modified) (2 diffs)
- branches/minimal/packages/initramfs/init.in (modified) (2 diffs)
- branches/minimal/packages/linux/Makefile (modified) (1 diff)
- branches/minimal/packages/linux/config.x86_64 (copied) (copied from branches/minimal/packages/linux64/config.x86_64)
- branches/minimal/packages/linux64 (deleted)
- branches/minimal/packages/traceroute/Makefile (modified) (2 diffs)
- branches/minimal/packages/unzip/Makefile (modified) (1 diff)
- branches/minimal/packages/zlib/Makefile (modified) (1 diff)
- branches/minimal/scripts/functions (modified) (1 diff)
- branches/minimal/scripts/shutdown-helper (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/minimal/Makefile
r1989 r1994 13 13 # 14 14 15 # Machine architecure, LiveCD version, and specific arch variables.16 #==============================================================================17 18 15 # Place your personal customizations in Makefile.personal 19 16 # instead of editing this Makefile. … … 22 19 -include Makefile.personal 23 20 24 #============================================================================== 25 26 # Here are the various variables you might want/need to change. You can change 27 # them here or in Makefile.personal. Variables mentioned in the README will not 28 # be commented on here. 21 # Here are the various variables you might want/need to change. 22 # Variables mentioned in the README will not be commented on here. 29 23 30 24 export MPBASE ?= /mnt/lfs … … 33 27 ROOTFS_MEGS := 1536 34 28 35 export VERSION ?= x86-6.3-min-pre2 36 export CFLAGS ?= -O2 -pipe -s -fno-strict-aliasing -mtune=i686 29 # Machine architecure, LiveCD version, and specific arch variables. 30 #============================================================================== 31 32 export CD_ARCH := $(shell uname -m | sed 's|i[3456]|x|') 33 export VERSION ?= $(CD_ARCH)-6.3-min-pre2 34 export CFLAGS ?= -O2 -pipe -s -fno-strict-aliasing 35 36 ifeq ($(CD_ARCH),x86) 37 export LFS_TARGET ?= i486-pc-linux-gnu 38 export CFLAGS := $(CFLAGS) -mtune=i686 39 export LINKER := ld-linux.so.2 40 endif 41 42 ifeq ($(CD_ARH),x86_64) 43 export 64bit = true 44 export LFS_TARGET ?= $(MACHTYPE) 45 export LINKER := ld-linux-x86-64.so.2 46 endif 47 37 48 export CXXFLAGS ?= $(CFLAGS) 38 export LFS_TARGET ?= i486-pc-linux-gnu39 40 49 41 50 # Default timezone … … 101 110 @if [ `whoami` != "root" ] ; then \ 102 111 echo "You must be logged in as root." && exit 1 ; fi 112 113 test-env: 114 env 103 115 104 116 # This image should be kept as clean as possible, i.e.: … … 160 172 -ln -s /proc/kcore $(MP)/dev/core 161 173 touch $(MKTREE) 174 ifdef 64bit 175 -if [ ! -L $(MP)/lib64 ] ; then ln -s lib $(MP)/lib64 ; fi 176 -if [ ! -L $(MP)/usr/lib64 ] ; then ln -s lib $(MP)/usr/lib64 ; fi 177 endif 162 178 163 179 # This target builds just a base LFS system, minus the kernel and bootscripts … … 263 279 ch-sysfsutils ch-pcmcia-cs ch-pcmciautils \ 264 280 ch-blfs-bootscripts ch-oui-data ch-hibernate-script ch-slang ch-mc \ 265 ch-fuse ch-dosfstools ch-ntfsprogs ch-bin86 ch-grub ch-lilo ch-syslinux \ 266 ch-binutils64 ch-gcc64 ch-linux64 ch-scsi-firmware ch-net-firmware \ 267 ch-initramfs 281 ch-fuse ch-dosfstools ch-ntfsprogs ch-bin86 ch-lilo ch-syslinux \ 282 ch-scsi-firmware ch-net-firmware ch-initramfs \ 283 ifeq ($(CD_ARCH),x86) 284 ch-grub 285 endif 268 286 make update-caches 269 287 … … 349 367 350 368 update-caches: 351 cd /usr/share/fonts ; mkfontscale ; mkfontdir ; fc-cache -f352 369 mandb -c 2>/dev/null 353 370 echo 'dummy / ext2 defaults 0 0' >/etc/mtab branches/minimal/isolinux/isolinux.cfg
r1769 r1994 8 8 kernel linux 9 9 append initrd=initramfs_data_cpio.gz 10 11 label linux6412 kernel linux6413 append initrd=initramfs_data_cpio.gzbranches/minimal/isolinux/options.msg
r1769 r1994 9 9 792 = 1024x768x24 791 = 1024x768x16 10 10 789 = 800x600x24 788 = 800x600x16 11 12 A 64-bit kernel for use with CLFS is available as "linux64"13 11 14 12 To set your timezone, add TZ=your_timezone anywhere branches/minimal/packages/LFS-BOOK/Makefile
r1973 r1994 11 11 #SHA-$(FILE)= 729bcf04d8e4ed0af3c58daf0d289e94d6385052 12 12 13 REV= 82 2513 REV= 8250 14 14 REVPARM= -r $(REV) 15 15 16 ifeq ($(CD_ARCH),x86) 16 17 URL= svn://svn.linuxfromscratch.org/LFS/trunk/BOOK 18 endif 19 ifeq ($(CD_ARCH),x86_64) 20 URL= svn://svn.linuxfromscratch.org/LFS/branches/x86_64/BOOK 21 endif 17 22 18 23 # Targets … … 41 46 clean: 42 47 -rm -rf tmp 48 -rm -rf $(ROOT)/root/tmp 43 49 44 50 .PHONY: clean chroot compile-stage2 branches/minimal/packages/bin86/Makefile
r1884 r1994 9 9 SHA-$(FILE)= 656f06b4b26d08412132e338baa25e42d713eeec 10 10 11 PATCH= $(DIR)-x86_64-1.patch 12 URL-$(PATCH)= http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/$(PATCH) 13 SHA-$(PATCH)= 2c967c062fbee4e40ca1bf55feec2033e132e0a9 14 11 15 # Targets 12 16 … … 17 21 'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)' 18 22 19 stage2: Makefile $(FILE) 23 stage2: Makefile $(FILE) $(PATCH) 20 24 $(std_build) 21 25 22 26 compile-stage2: 27 ifeq ($(CD_ARCH),x86_64) 28 patch -Np1 -i ../$(PATCH) 29 endif 23 30 make PREFIX=/usr MANDIR=/usr/share/man/man1 24 31 make PREFIX=/usr MANDIR=/usr/share/man/man1 install branches/minimal/packages/binutils/Makefile
r1835 r1994 25 25 unset CFLAGS ; make -C ld LIB_PATH=$(WD)/lib 26 26 cp -v ld/ld-new $(WD)/bin 27 ifdef 64bit 28 ln -s lib $(WD)/lib64 29 endif 27 30 28 31 adjust-toolchain: … … 31 34 mv -v $(WD)/bin/{ld-new,ld} 32 35 ln -sv $(WD)/bin/ld $(WD)/$$(gcc -dumpmachine)/bin/ld 33 gcc -dumpspecs | sed 's@ ^/lib/ld-linux.so.2@/tools&@g' \36 gcc -dumpspecs | sed 's@/lib[64]*/$(LINKER)@/tools&@g' \ 34 37 > `dirname $$(gcc -print-libgcc-file-name)`/specs 35 38 GCC_INCLUDEDIR=`dirname $$(gcc -print-libgcc-file-name)`/include && \ … … 61 64 mv -v $(WD)/bin/{ld-new,ld} 62 65 ln -sv $(WD)/bin/ld $(WD)/$$(gcc -dumpmachine)/bin/ld 63 gcc -dumpspecs | sed \ 64 -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' \ 66 gcc -dumpspecs | sed -e 's@/tools@@g' \ 65 67 -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' \ 66 68 -e '/\*cpp:/{n;s@$$@ -isystem /usr/include@}' > \ branches/minimal/packages/gcc/Makefile
r1973 r1994 26 26 unset CFLAGS ; CC="gcc -B/usr/bin/" ../$(DIR)/configure --prefix=$(WD) \ 27 27 --with-local-prefix=$(WD) --disable-nls --enable-shared \ 28 --enable-languages=c --enable-static 28 --enable-languages=c --enable-static --disable-multilib 29 29 unset CFLAGS ; make bootstrap 30 30 unset CFLAGS ; make install … … 41 41 > gcc/Makefile.in 42 42 cd ../$(DIR) ; patch -Np1 -i ../$(PATCH1) 43 ifdef 64bit 44 cd ../$(DIR) ; cp -v gcc/config/i386/t-linux64{,.tmp} && \ 45 sed '/MULTILIB_OSDIRNAMES/d' gcc/config/i386/t-linux64.tmp \ 46 > gcc/config/i386/t-linux64 47 endif 43 48 # --enable-static overrides the unsuitable default in config.site 44 49 ../$(DIR)/configure --prefix=$(WD) \ 45 50 --with-local-prefix=$(WD) --enable-clocale=gnu --enable-shared \ 46 51 --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ \ 47 --disable-libstdcxx-pch --enable-static 52 --disable-libstdcxx-pch --enable-static --disable-multilib 48 53 make 49 54 make install … … 66 71 ../$(DIR)/configure --prefix=/usr --libexecdir=/usr/lib \ 67 72 --enable-shared --enable-threads=posix --enable-__cxa_atexit \ 68 --enable-clocale=gnu --enable-languages=c,c++ --enable-static 73 --enable-clocale=gnu --enable-languages=c,c++ --enable-static \ 74 --disable-multilib 69 75 make 70 76 -make -k check branches/minimal/packages/glibc/Makefile
r1973 r1994 51 51 cd ../$(DIR) ; unpack ../$(FILE2) ; mv glibc-libidn-$(VRS) libidn 52 52 sed -i \ 53 's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ ld-linux.so.2-o|' \53 's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/$(LINKER) -o|' \ 54 54 ../$(DIR)/scripts/test-installation.pl 55 55 # LiveCD specific locale additions branches/minimal/packages/initramfs/Makefile
r1985 r1994 21 21 compile-stage2: 22 22 mkdir -p $(WDIR)/{bin,dev,etc/udev/rules.d,lib/firmware,sbin,sys,proc} 23 ifdef 64bit 24 ln -s lib $(WDIR)/lib64 25 endif 23 26 cp /etc/udev/udev.conf $(WDIR)/etc/udev/udev.conf 24 27 cp /etc/udev/rules.d/{05-*,2*,60-*} $(WDIR)/etc/udev/rules.d … … 30 33 mknod -m 664 $(WDIR)/dev/null c 1 3 31 34 cp /bin/{sh,dd,cat,cp,killall,mkdir,mount,umount,sed,sleep,ln,rm,uname} $(WDIR)/bin 32 cp /lib/{libblkid.so.1,libc.so.6,libdl.so.2, ld-linux.so.2} $(WDIR)/lib35 cp /lib/{libblkid.so.1,libc.so.6,libdl.so.2,$(LINKER)} $(WDIR)/lib 33 36 cp /lib/{libncursesw.so.5,libreadline.so.5,libhistory.so.5} $(WDIR)/lib 34 37 cp /lib/{libpthread.so.0,librt.so.1,libuuid.so.1} $(WDIR)/lib branches/minimal/packages/initramfs/init.in
r1985 r1994 18 18 nodhcp=0 19 19 cdtype= 20 21 case `uname -m` in 22 i[3456]86) LINKER="ld-linux.so.2" ;; 23 24 x86_64) LINKER="ld-linux-x86-64.so.2" ;; 25 esac 20 26 21 27 find_cd() { … … 339 345 # Clean up and free some memory 340 346 rm -rf /bin /sbin /lib /sys /proc /dev /.tmpfs /init /fakecd.iso.head 341 ./lib/ ld-linux.so.2--library-path ./lib ./bin/mount -n --move . /342 exec ../lib/ ld-linux.so.2--library-path ./lib ./usr/sbin/chroot . "$init" "$@"347 ./lib/${LINKER} --library-path ./lib ./bin/mount -n --move . / 348 exec ../lib/${LINKER} --library-path ./lib ./usr/sbin/chroot . "$init" "$@" branches/minimal/packages/linux/Makefile
r1973 r1994 26 26 mkdir -p /boot/isolinux 27 27 make mrproper 28 cp ../config. x86.config28 cp ../config.$(CD_ARCH) .config 29 29 make 30 30 make modules_install 31 ifeq $(CD_ARCH),x86) 31 32 cp -v arch/i386/boot/bzImage /boot/isolinux/linux 33 endif 34 ifeq $(CD_ARCH),x86_64) 35 cp -v arch/x86_64/boot/bzImage /boot/isolinux/linux 36 endif 32 37 cd .. ; ./debian-style-headers.sh $(DIR) 33 38 branches/minimal/packages/traceroute/Makefile
r1816 r1994 9 9 SHA-$(FILE)= c68ec1b09539a8e9655c138031c3090bda92d5f1 10 10 11 PATCH= $(DIR)-update_config-1.patch 12 URL-$(PATCH)= http://svn.cross-lfs.org/svn/repos/patches/$(NM)/$(PATCH) 13 SHA-$(PATCH)= f52c3772bcd63f9f06137128d8e3b64c7c533743 14 11 15 # Targets 12 16 … … 17 21 'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)' 18 22 19 stage2: Makefile $(FILE) 23 stage2: Makefile $(FILE) $(PATCH) 20 24 $(std_build) 21 25 22 26 compile-stage2: 27 ifeq ($(CD_ARCH),x86_64) 28 patch -Np1 -i ../$(PATCH) 29 endif 23 30 sed -i -e 's/-o bin/-o root/' Makefile.in 24 31 ./configure --prefix=/usr branches/minimal/packages/unzip/Makefile
r1871 r1994 21 21 22 22 compile-stage2: 23 ifeq ($(CD_ARCH),x86) 23 24 make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux 25 else 26 make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux_noasm 27 endif 24 28 make prefix=/usr MANDIR=/usr/share/man/man1 install 25 29 branches/minimal/packages/zlib/Makefile
r1816 r1994 29 29 30 30 compile-stage2: 31 ./configure --prefix=/usr --shared --libdir=/lib32 make31 unset CFLAGS ; ./configure --prefix=/usr --shared --libdir=/lib 32 unset CFLAGS ; make 33 33 make install 34 34 rm /lib/libz.so 35 35 ln -sf ../../lib/libz.so.$(VRS) /usr/lib/libz.so 36 36 make clean 37 ./configure --prefix=/usr38 make37 unset CFLAGS ; ./configure --prefix=/usr 38 unset CFLAGS ; make 39 39 make install 40 40 chmod 644 /usr/lib/libz.a branches/minimal/scripts/functions
r1927 r1994 5 5 # Date : 2005-07-17 6 6 #============================================================================== 7 8 define get_arch 9 @uname -m 10 endef 7 11 8 12 define echo_message branches/minimal/scripts/shutdown-helper
r1985 r1994 1 1 #!/bin/sh 2 2 3 case `uname -m` in 4 i[3456]86) LINKER="ld-linux.so.2" ;; 5 6 x86_64) LINKER="ld-linux-x86-64.so.2" ;; 7 esac 8 3 9 FILES="/lib/libc.so.6 4 /lib/ ld-linux.so.210 /lib/${LINKER} 5 11 /lib/libreadline.so.5 6 12 /lib/libhistory.so.5
