Changeset 1599

Show
Ignore:
Timestamp:
07/12/06 01:06:53 (2 years ago)
Author:
justin
Message:

Starting update of the LiveCD cross branch as it is very out-of-date. Focusing at this time on x86, x86_64 pure64 and sparc64 pure64. More to be added once these are working. Fixed up gcc, glibc, linux-headers, binutils, ncurses, bash and other settings. A stop-here target is placed after chapter 6 bash build. Still very experimental and a work in progress. Once all is building, the uname stuff will need to be correct. As for all the configurations for UTF-8, we will see how it works out as some items may not work or be useful on a CLFS system.

Location:
branches/cross
Files:
2 added
8 removed
14 modified

Legend:

Unmodified
Added
Removed
  • branches/cross/Makefile

    r1520 r1599  
    3232# HTTP:     Default http server for the lfs-base packages 
    3333# HTTPBLFS: Default http server for the BLFS packages 
     34# BUILD_MINIMAL: Build minimal blfs packages if 1 
    3435 
    3536export LFS-ARCH ?= x86 
     
    3839export timezone ?= GMT 
    3940export pagesize ?= letter 
     41export BUILD_MINIMAL ?= 0 
    4042export ROOT ?= /lfs-livecd 
    4143#export PM ?= -j3 
    42 export HTTP ?= http://ftp.lfs-matrix.net/pub/lfs/conglomeration 
     44export HTTP ?= http://ftp.lfs-matrix.net/pub/clfs/conglomeration 
     45export HTTPLFS ?= http://ftp.lfs-matrix.net/pub/lfs/conglomeration 
    4346export HTTPBLFS ?= http://ftp.lfs-matrix.net/pub/blfs/conglomeration 
    4447 
    4548# Directory variables 
    4649#============================================================================== 
    47 export HOSTNAME := lfslivecd 
     50export HOSTNAME := clfslivecd 
    4851export WD := /tools 
    4952export SRC := /sources 
    50 export LFSSRC := /lfs-sources 
     53export LFSSRC := /clfs-sources 
    5154export PKG := packages 
    5255export MKTREE := $(MP)$(ROOT) 
    5356 
     57export KVRS := 2.6.17.4 
    5458ROOTFS_MEGS := 1536 
    5559 
     
    6165# The following lines need to be all on one line - no newlines. 
    6266#=============================================================================== 
    63 ifndef CROSS 
    64 export lfsenv := exec env -i HOME=$$HOME CFLAGS='$(CFLAGS)' CXXFLAGS='$(CXXFLAGS)' LFS=$(MP) LC_ALL=POSIX PATH=$(WD)/bin:/bin:/usr/bin /bin/bash -c 
    65  
    66 export chenv-pre-bash := $(WD)/bin/env -i HOME=/root CFLAGS='$(CFLAGS)' CXXFLAGS='$(CXXFLAGS)' TERM=$(TERM) PS1='\u:\w\$$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:$(WD)/bin $(WD)/bin/bash -c 
    67  
    68 export chenv-post-bash := $(WD)/bin/env -i HOME=/root CFLAGS='$(CFLAGS)' CXXFLAGS='$(CXXFLAGS)' TERM=$(TERM) PS1='\u:\w\$$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:$(WD)/bin /bin/bash -c 
    69  
    70 else 
    71 export crossenv := exec env -i HOME=$$HOME CFLAGS='' CXXFLAGS='' LFS=$(MP) LC_ALL=POSIX BUILD32='$(32FLAGS)' BUILD64='$(64FLAGS)' PATH=$(CROSS_WD)/bin:/bin:/usr/bin /bin/bash -c 
    72  
    73 export lfsenv := exec env -i HOME=$$HOME CFLAGS='$(CFLAGS)' CXXFLAGS='$(CXXFLAGS)' LFS=$(MP) LC_ALL=POSIX CC='$(LFS_TARGET)-gcc' CXX='$(LFS_TARGET)-g++' AR='$(LFS_TARGET)-ar' AS='$(LFS_TARGET)-as' RANLIB='$(LFS_TARGET)-ranlib' LD='$(LFS_TARGET)-ld' STRIP='$(LFS_TARGET)-strip' BUILD32='$(32FLAGS)' BUILD64='$(64FLAGS)' PATH=$(CROSS_WD)/bin:/bin:/usr/bin /bin/bash -c 
     67export crossenv := exec env -i HOME=$$HOME CFLAGS='' CXXFLAGS='' CLFS=$(MP) LC_ALL=POSIX BUILD32='$(32FLAGS)' BUILD64='$(64FLAGS)' PATH=$(CROSS_WD)/bin:/bin:/usr/bin /bin/bash -c 
     68 
     69export clfsenv := exec env -i HOME=$$HOME CFLAGS='$(CFLAGS)' CXXFLAGS='$(CXXFLAGS)' CLFS=$(MP) LC_ALL=POSIX CC='$(CLFS_TARGET)-gcc' CXX='$(CLFS_TARGET)-g++' AR='$(CLFS_TARGET)-ar' AS='$(CLFS_TARGET)-as' RANLIB='$(CLFS_TARGET)-ranlib' LD='$(CLFS_TARGET)-ld' STRIP='$(CLFS_TARGET)-strip' BUILD32='$(32FLAGS)' BUILD64='$(64FLAGS)' PATH=$(CROSS_WD)/bin:/bin:/usr/bin /bin/bash -c 
    7470 
    7571export chenv-pre-bash := $(WD)/bin/env -i HOME=/root CFLAGS='$(CFLAGS)' CXXFLAGS='$(CXXFLAGS)' TERM=$(TERM) PS1='\u:\w\$$ ' BUILD32='$(32FLAGS)' BUILD64='$(64FLAGS)' PATH=/bin:/usr/bin:/sbin:/usr/sbin:$(WD)/bin $(WD)/bin/bash -c 
    7672 
    7773export chenv-post-bash := $(WD)/bin/env -i HOME=/root CFLAGS='$(CFLAGS)' CXXFLAGS='$(CXXFLAGS)' TERM=$(TERM) PS1='\u:\w\$$ ' BUILD32='$(32FLAGS)' BUILD64='$(64FLAGS)' PATH=/bin:/usr/bin:/sbin:/usr/sbin:$(WD)/bin /bin/bash -c 
    78 endif 
    79  
    80 export lfsbash := set +h && umask 022 && cd $(MKTREE) 
     74 
     75export clfsbash := set +h && umask 022 && cd $(MKTREE) 
    8176 
    8277export chenv-blfs := /usr/bin/env -i HOME=/root CFLAGS='$(CFLAGS)' TERM=$(TERM) PS1='\u:\w\$$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin INPUTRC=/etc/inputrc XML_CATALOG_FILES="/usr/share/xml/docbook/xsl-stylesheets-1.69.1/catalog.xml /etc/xml/catalog" /bin/bash -c 
     
    105100# lfs-base, extend-lfs and iso, then it echoes a notice that it's finished. :) 
    106101 
    107 all: test-host lfs-base extend-lfs iso 
    108         @echo "The LiveCD, $(MPBASE)$(ROOT)/lfslivecd-$(VERSION).iso, is ready!" 
    109  
    110 minimal: test-host lfs-base extend-minimal iso 
     102all: test-host clfs-base extend-clfs iso 
     103        @echo "The LiveCD, $(MPBASE)$(ROOT)/clfslivecd-$(VERSION).iso, is ready!" 
    111104 
    112105test-host: 
     
    133126        mount --bind $(MPBASE)$(SRC) $(MP)$(SRC) 
    134127        mount --bind $(MPBASE)/iso/boot $(MP)/boot 
    135         mkdir -p $(MP)$(LFSSRC) 
     128        mkdir -p $(MP)$(CLFSSRC) 
    136129        -ln -nsf $(MPBASE)$(WD) / 
    137130        -ln -nsf $(MPBASE)$(SRC) / 
    138131        -ln -nsf $(MPBASE)$(ROOT) / 
    139         -ln -nsf $(MP)$(LFSSRC) / 
    140 ifdef CROSS 
     132        -ln -nsf $(MP)$(CLFSSRC) / 
    141133        mkdir -p $(MPBASE)$(CROSS_WD)/bin $(MP)$(CROSS_WD) 
    142134        mount --bind $(MPBASE)$(CROSS_WD) $(MP)$(CROSS_WD) 
    143135        -ln -nsf $(MP)$(CROSS_WD) / 
    144 endif 
    145136        -mkdir -p $(MP)/{proc,sys,dev/shm,dev/pts} 
    146137        -mount -t proc proc $(MP)/proc 
     
    167158        -install -d $(MP)/opt/{bin,doc,include,info} 
    168159        -install -d $(MP)/opt/{lib,man/man{1,2,3,4,5,6,7,8}} 
    169 ifdef CROSS 
    170160        -install -d $(MP)/{,usr/{,local},opt}/$(LIB_MAYBE64) 
    171161        -install -d /usr/lib/locale 
    172162        -ln -s ../lib/locale /usr/$(LIB_MAYBE64) 
    173 endif 
    174163        -mknod -m 600 $(MP)/dev/console c 5 1 
    175164        -mknod -m 666 $(MP)/dev/null c 1 3 
     
    186175        -ln -s /proc/kcore $(MP)/dev/core 
    187176 
    188 # This target builds just a base LFS system, minus the kernel and bootscripts 
    189 #============================================================================== 
    190 lfs-base: $(MP)$(ROOT) lfsuser 
    191 ifndef CROSS 
    192         @-make unamemod 
    193         @-chown -R lfs $(WD) $(MP)$(WD) $(WD)/bin \ 
    194          $(LFSSRC) $(MP)$(LFSSRC) $(SRC) $(MP)$(SRC) $(MKTREE) 
    195         @cp $(ROOT)/scripts/unpack $(WD)/bin 
    196         @su - lfs -c "$(lfsenv) '$(lfsbash) && $(MAKE) tools'" 
    197         @touch $(PKG)/wget/.pass2 
    198         @install -m644 -oroot -groot $(ROOT)/etc/{group,passwd} $(MP)/etc 
    199         @-ln -s $(WD)/bin/bash $(MP)/bin/bash 
    200         @chroot "$(MP)" $(chenv-pre-bash) 'set +h && \ 
    201          chown -R 0:0 $(WD) $(SRC) $(ROOT) && \ 
    202          cd $(ROOT) && make pre-bash $(chbash-pre-bash)' 
    203         @chroot "$(MP)" $(chenv-post-bash) 'set +h && cd $(ROOT) && \ 
    204          make post-bash $(chbash-post-bash)' 
    205         @-ln -s $(WD)/bin/wget $(MP)/usr/bin/wget 
    206 else 
    207         @-chown -R lfs $(WD) $(MP)$(WD) $(WD)/bin $(CROSS_WD) $(MP)$(CROSS_WD) $(CROSS_WD)/bin \ 
    208          $(LFSSRC) $(MP)$(LFSSRC) $(SRC) $(MP)$(SRC) $(MKTREE) 
     177# This target builds just a base CLFS system, minus the kernel and bootscripts 
     178#============================================================================== 
     179clfs-base: $(MP)$(ROOT) clfsuser 
     180        @-chown -R clfs $(WD) $(MP)$(WD) $(WD)/bin $(CROSS_WD) $(MP)$(CROSS_WD) $(CROSS_WD)/bin \ 
     181         $(CLFSSRC) $(MP)$(CLFSSRC) $(SRC) $(MP)$(SRC) $(MKTREE) 
    209182        @cp $(ROOT)/scripts/unpack $(WD)/bin 
    210183        @cp $(ROOT)/scripts/unpack $(CROSS_WD)/bin 
    211         @su - lfs -c "$(crossenv) '$(lfsbash) && $(MAKE) cross-tools'" 
    212         @su - lfs -c "$(lfsenv) '$(lfsbash) && $(MAKE) tools'" 
     184        @su - clfs -c "$(crossenv) '$(clfsbash) && $(MAKE) cross-tools'" 
     185        @su - clfs -c "$(clfsenv) '$(clfsbash) && $(MAKE) tools'" 
    213186        @install -m644 -oroot -groot $(ROOT)/etc/{group,passwd} $(MP)/etc 
    214187        @-ln -s $(WD)/bin/bash $(MP)/bin/bash 
     
    219192         make cross-post-bash $(chbash-post-bash)' 
    220193        @-ln -s $(WD)/bin/wget $(MP)/usr/bin/wget 
    221 endif 
    222194 
    223195stop-here: 
    224196        exit 1 
    225197 
    226 extend-lfs: $(MP)$(ROOT) 
     198extend-clfs: $(MP)$(ROOT) 
    227199        @cp $(WD)/bin/which $(MP)/usr/bin 
    228200        @cp $(ROOT)/scripts/unpack $(MP)/bin 
    229 ifndef CROSS 
     201ifeq ($(BUILD_MINIMAL),0) 
    230202        @chroot "$(MP)" $(chenv-blfs) 'set +h && cd $(ROOT) && \ 
    231          make blfs $(chbash-post-bash)' 
     203         make extend-$(LFS-ARCH) $(chbash-post-bash)' 
     204        @chroot "$(MP)" $(chenv-blfs) 'set +h && cd $(ROOT) && \ 
     205         make blfs-common $(chbash-post-bash)' 
    232206else 
    233 ifeq ($(LFS-ARCH),sparc64) 
    234207        @chroot "$(MP)" $(chenv-blfs) 'set +h && cd $(ROOT) && \ 
    235          make sparc64-blfs $(chbash-post-bash)' 
    236 endif 
    237 ifeq ($(LFS-ARCH),x86_64) 
    238         @chroot "$(MP)" $(chenv-blfs) 'set +h && cd $(ROOT) && \ 
    239          make x86_64-blfs $(chbash-post-bash)' 
    240 endif 
    241 endif 
    242  
    243 extend-minimal: prep-chroot 
    244         @cp $(WD)/bin/which $(MP)/usr/bin 
    245         @cp $(ROOT)/scripts/unpack $(MP)/bin 
     208         make extend-$(LFS-ARCH) $(chbash-post-bash)' 
    246209        @chroot "$(MP)" $(chenv-blfs) 'set +h && cd $(ROOT) && \ 
    247210         make blfs-minimal $(chbash-post-bash)' 
    248         @make unmount 
    249         @touch $@ 
    250  
    251 lfsuser: 
    252         @-groupadd lfs 
    253         @-useradd -s /bin/bash -g lfs -m -k /dev/null lfs 
     211endif 
     212 
     213clfsuser: 
     214        @-groupadd clfs 
     215        @-useradd -s /bin/bash -g clfs -m -k /dev/null clfs 
    254216        @touch $@ 
    255217 
     
    261223pre-wget: 
    262224        @make -C $(PKG)/wget prebuild 
    263 ifdef CROSS 
    264225        @-ln -s $(WD)/bin/wget $(CROSS_WD)/bin 
    265 endif 
    266226        @touch $@ 
    267227 
    268 unamemod: 
    269         @install -m 755 uname/uname $(WD)/bin/ 
    270         @touch $@ 
    271  
    272 cross-tools: pre-which pre-wget lfs-linux-libc-headers-scpt lfs-binutils-cross \ 
    273         lfs-gcc-cross-static lfs-glibc-scpt-32 lfs-glibc-scpt lfs-gcc-cross 
    274  
    275 ifndef CROSS 
    276 tools:  pre-which pre-wget lfs-binutils-pass1 lfs-gcc-pass1 \ 
    277         lfs-linux-libc-headers-scpt lfs-glibc-scpt lfs-adjust-toolchain \ 
    278         lfs-tcl-scpt lfs-expect-scpt lfs-dejagnu-scpt lfs-gcc-pass2 \ 
    279         lfs-binutils-pass2 lfs-ncurses-scpt lfs-bash-scpt lfs-bzip2-scpt \ 
    280         lfs-coreutils-scpt lfs-diffutils-scpt lfs-findutils-scpt \ 
    281         lfs-gawk-scpt lfs-gettext-scpt lfs-grep-scpt lfs-gzip-scpt \ 
    282         lfs-m4-scpt lfs-make-scpt lfs-patch-scpt lfs-perl-scpt lfs-sed-scpt \ 
    283         lfs-tar-scpt lfs-texinfo-scpt lfs-util-linux-scpt lfs-wget-scpt \ 
    284         lfs-strip 
     228cross-tools: pre-which pre-wget clfs-linux-headers-scpt clfs-binutils-cross \ 
     229        clfs-gcc-cross-static clfs-glibc-scpt clfs-gcc-cross 
     230 
     231tools: clfs-binutils-scpt clfs-gcc-scpt clfs-ncurses-scpt clfs-bash-scpt stop-here \ 
     232        clfs-bzip2-scpt clfs-coreutils-scpt clfs-diffutils-scpt clfs-findutils-scpt \ 
     233        clfs-gawk-scpt clfs-gettext-scpt clfs-grep-scpt clfs-gzip-scpt clfs-make-scpt \ 
     234        clfs-patch-scpt clfs-sed-scpt clfs-tar-scpt clfs-texinfo-scpt \ 
     235        clfs-util-linux-scpt clfs-wget-scpt 
    285236        @cp /etc/resolv.conf $(WD)/etc 
    286 else 
    287 tools: lfs-binutils-scpt lfs-gcc-scpt lfs-gawk-scpt lfs-coreutils-scpt \ 
    288         lfs-bzip2-scpt lfs-gzip-scpt lfs-diffutils-scpt lfs-findutils-scpt lfs-make-scpt \ 
    289         lfs-grep-scpt lfs-sed-scpt lfs-gettext-scpt lfs-ncurses-scpt lfs-patch-scpt \ 
    290         lfs-tar-scpt lfs-bash-scpt lfs-texinfo-scpt lfs-util-linux-scpt lfs-wget-scpt 
    291         @cp /etc/resolv.conf $(WD)/etc 
    292 endif 
    293  
    294 pre-bash: createfiles ch-linux-libc-headers ch-man-pages \ 
    295         ch-glibc re-adjust-toolchain ch-binutils ch-gcc ch-db ch-coreutils \ 
    296         ch-iana-etc ch-m4 ch-bison ch-gpm ch-ncurses ch-procps ch-sed ch-libtool \ 
    297         ch-perl ch-readline ch-zlib ch-autoconf ch-automake ch-bash 
    298  
    299 post-bash: ch-bzip2 ch-diffutils ch-e2fsprogs ch-file ch-findutils ch-flex \ 
    300         ch-grub ch-gawk ch-gettext ch-grep ch-groff ch-gzip ch-inetutils \ 
    301         ch-iproute2 ch-kbd ch-less ch-make ch-man-db ch-mktemp \ 
    302         ch-module-init-tools ch-patch ch-psmisc ch-shadow ch-sysklogd \ 
    303         ch-sysvinit ch-tar ch-texinfo ch-udev ch-util-linux ch-vim \ 
    304         final-environment 
    305  
    306 cross-pre-bash: createfiles lfs-tcl-scpt lfs-expect-scpt \ 
    307         lfs-dejagnu-scpt lfs-perl-scpt lfs-texinfo-scpt ch-linux-libc-headers \ 
    308         ch-man-pages ch-glibc-32 ch-glibc adjusting-toolchain ch-binutils ch-gcc \ 
    309         ch-coreutils ch-zlib ch-iana-etc ch-findutils ch-gawk ch-ncurses ch-readline \ 
    310         ch-vim ch-m4 ch-bison ch-less ch-db ch-groff ch-sed \ 
    311         ch-flex ch-gettext ch-inetutils \ 
    312         ch-perl ch-iproute2 ch-texinfo ch-autoconf ch-automake ch-bash 
    313  
    314 cross-post-bash: ch-file ch-libtool ch-bzip2 ch-diffutils ch-kbd ch-e2fsprogs \ 
    315         ch-grep ch-gzip ch-man-db ch-make ch-module-init-tools ch-patch ch-procps \ 
    316         ch-psmisc ch-shadow ch-sysklogd ch-sysvinit ch-tar ch-util-linux ch-udev \ 
    317         final-environment 
    318 ifeq ($(LFS-ARCH),x86_64) 
    319         make ch-grub 
    320 endif 
    321  
    322 blfs: ch-openssl ch-wget ch-reiserfsprogs ch-xfsprogs ch-nano ch-joe \ 
     237 
     238cross-pre-bash: createfiles clfs-tcl-scpt clfs-expect-scpt clfs-file-scpt \ 
     239        clfs-dejagnu-scpt clfs-tree-scpt clfs-perl-scpt ch-linux-headers \ 
     240        ch-glibc adjusting-toolchain ch-binutils ch-gcc ch-coreutils ch-iana-etc \ 
     241        ch-m4 ch-bison ch-ncurses ch-procps ch-sed ch-libtool ch-perl ch-readline \ 
     242        ch-zlib ch-autoconf ch-automake ch-bash 
     243 
     244cross-post-bash: ch-bzip2 ch-diffutils ch-e2fsprogs ch-file ch-findutils ch-flex \ 
     245        ch-gawk ch-gettext ch-grep ch-groff ch-gzip ch-inetutils ch-iproute2 ch-kbd \ 
     246        ch-less ch-make ch-man ch-man-pages ch-mktemp ch-module-init-tools ch-patch \ 
     247        ch-psmisc ch-shadow ch-sysklogd ch-sysvinit ch-tar ch-texinfo ch-udev \ 
     248        ch-util-linux ch-vim ch-bootscripts-clfs ch-udev-cross-lfs final-environment 
     249 
     250blfs-common: ch-openssl ch-wget ch-reiserfsprogs ch-xfsprogs ch-nano ch-joe \ 
    323251        ch-screen ch-pkgconfig ch-libidn ch-curl ch-zip ch-unzip ch-lynx ch-libxml2 ch-expat \ 
    324         ch-subversion ch-lfs-bootscripts ch-livecd-bootscripts ch-docbook-xml ch-libxslt \ 
    325         ch-docbook-xsl ch-html_tidy ch-LFS-BOOK ch-libpng ch-freetype \ 
     252        ch-subversion ch-livecd-bootscripts ch-docbook-xml ch-libxslt \ 
     253        ch-docbook-xsl ch-html_tidy ch-CLFS-BOOK ch-libpng ch-freetype \ 
    326254        ch-fontconfig ch-Xorg-modular ch-freefont ch-inputattach ch-fonts-dejavu \ 
    327255        ch-fonts-kochi ch-fonts-firefly ch-fonts-baekmuk ch-libjpeg ch-libtiff \ 
     
    343271        ch-libchewing ch-scim-chewing ch-scim-pinyin ch-scim-input-pad \ 
    344272        ch-bin86 ch-lilo ch-syslinux update-fontsdir 
    345 ifeq ($(LFS-ARCH),ppc) 
    346         make ch-yaboot 
    347 endif 
    348273 
    349274blfs-minimal: ch-openssl ch-wget ch-reiserfsprogs ch-xfsprogs ch-nano ch-joe \ 
    350275        ch-screen ch-pkgconfig ch-libidn ch-curl ch-zip ch-unzip ch-lynx ch-libxml2 \ 
    351         ch-expat ch-subversion ch-lfs-bootscripts ch-livecd-bootscripts ch-docbook-xml ch-libxslt \ 
     276        ch-expat ch-subversion ch-livecd-bootscripts ch-docbook-xml ch-libxslt \ 
    352277        ch-docbook-xsl ch-html_tidy ch-LFS-BOOK ch-openssh ch-glib2 ch-cvs \ 
    353278        ch-popt ch-samba ch-irssi ch-wireless_tools ch-tcpwrappers ch-portmap \ 
     
    360285        ch-man-fr ch-man-pages-es ch-man-pages-it ch-manpages-de ch-manpages-ru \ 
    361286        ch-bin86 ch-lilo ch-syslinux 
    362 ifeq ($(LFS-ARCH),ppc) 
    363         make ch-yaboot 
    364 endif 
    365  
    366 x86_64-blfs: ch-openssl ch-wget ch-reiserfsprogs ch-nano ch-joe ch-screen ch-pkgconfig ch-libidn ch-curl \ 
    367         ch-zip ch-unzip ch-lynx ch-libxml2 ch-expat ch-subversion ch-lfs-bootscripts \ 
    368         ch-livecd-bootscripts \ 
    369         ch-docbook-xml ch-libxslt ch-docbook-xsl ch-html_tidy cd-LFS-BOOK ch-cpio \ 
    370         ch-man-fr ch-man-pages-es ch-man-pages-it ch-manpages-de ch-manpages-ru \ 
    371         ch-linux ch-device-mapper ch-initramfs ch-cdrtools ch-zisofs-tools \ 
    372         ch-syslinux 
    373  
    374 sparc64-blfs: ch-openssl ch-wget ch-reiserfsprogs ch-xfsprogs ch-nano \ 
    375         ch-joe ch-screen ch-pkgconfig ch-libidn ch-curl ch-zip ch-unzip ch-lynx ch-libxml2 ch-expat \ 
    376         ch-subversion ch-lfs-bootscripts ch-livecd-bootscripts ch-docbook-xml ch-libxslt \ 
    377         ch-docbook-xsl ch-html_tidy ch-LFS-BOOK ch-openssh \ 
    378         ch-glib2 ch-cvs ch-popt ch-samba ch-tcpwrappers \ 
    379         ch-portmap ch-nfs-utils ch-traceroute ch-dialog ch-ncftp ch-pciutils \ 
    380         ch-device-mapper ch-LVM2 ch-dhcpcd ch-distcc ch-ppp ch-rp-pppoe \ 
    381         ch-libaal ch-reiser4progs ch-cpio ch-mutt ch-msmtp ch-tin \ 
    382         ch-mdadm ch-which ch-strace ch-iptables ch-eject ch-hdparm ch-linux \ 
    383         ch-initramfs ch-cdrtools ch-zisofs-tools ch-blfs-bootscripts \ 
    384         ch-man-fr ch-man-pages-es ch-man-pages-it ch-manpages-de ch-manpages-ru \ 
    385         ch-elftoaout ch-silo 
     287 
     288extend-x86: ch-grub 
     289 
     290extend-x86_64: ch-grub 
     291 
     292extend-sparc64: ch-elftoaout ch-silo 
     293 
     294extend-ppc: ch-yaboot 
    386295 
    387296wget-list: 
     
    397306#============================================================================== 
    398307 
    399 # The following takes the form 'make lfs-[package name]-only'    
    400 lfs-%-only: unamemod lfsuser 
    401         @su - lfs -c "$(lfsenv) '$(lfsbash) && $(MAKE) lfs-$*-scpt'" 
    402  
    403 # The following two take the form 'make lfs-[package name]-only-pass#'   
    404 lfs-%-only-pass1: unamemod lfsuser 
    405         @su - lfs -c "$(lfsenv) '$(lfsbash) && $(MAKE) lfs-$*-pass1'" 
    406  
    407 lfs-%-only-pass2: unamemod lfsuser 
    408         @su - lfs -c "$(lfsenv) '$(lfsbash) && $(MAKE) lfs-$*-pass2'" 
     308# The following takes the form 'make clfs-[package name]-only'   
     309clfs-%-only: clfsuser 
     310        @su - clfs -c "$(clfsenv) '$(clfsbash) && $(MAKE) clfs-$*-scpt'" 
    409311 
    410312# The following takes the form 'make [package name]-only-ch'     
     
    432334        @-$(WD)/bin/ln -s $(WD)/lib/libgcc_s.so{,.1} /usr/lib 
    433335        @-$(WD)/bin/ln -s bash /bin/sh 
    434 ifdef CROSS 
    435336        @-$(WD)/bin/ln -s $(WD)/lib64/libgcc_s.so{,.1} /usr/lib64 
    436 endif 
    437337        @touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} 
    438338        @chgrp utmp /var/run/utmp /var/log/lastlog 
    439339        @chmod 664 /var/run/utmp /var/log/lastlog 
    440 ifdef CROSS 
    441340        @chmod 600 /var/log/btmp 
    442 endif 
    443341        @mv $(WD)/etc/resolv.conf /etc 
    444342 
     
    447345#============================================================================== 
    448346 
    449 lfs-%-scpt: 
     347clfs-%-scpt: 
    450348        $(MAKE) -C $(PKG)/$* stage1 
    451349 
    452 lfs-%-scpt-32: 
    453         $(MAKE) -C $(PKG)/$* stage1-32 
    454  
    455 lfs-%-cross: 
     350clfs-%-cross: 
    456351        $(MAKE) -C $(PKG)/$* cross 
    457352 
    458 lfs-glibc-headers: 
    459         $(MAKE) -C $(PKG)/glibc headers 
    460  
    461 lfs-gcc-cross-static: 
     353clfs-gcc-cross-static: 
    462354        $(MAKE) -C $(PKG)/gcc cross-static 
    463355 
    464 lfs-%-pass1: 
     356clfs-%-pass1: 
    465357        $(MAKE) -C $(PKG)/$* pass1 
    466358 
    467 lfs-%-pass2: 
     359clfs-%-pass2: 
    468360        $(MAKE) -C $(PKG)/$* pass2 
    469361 
    470 lfs-adjust-toolchain: 
    471         $(MAKE) -C $(PKG)/binutils adjust-toolchain 
    472  
    473 lfs-strip: 
     362clfs-strip: 
    474363        @-strip --strip-debug $(WD)/lib/* 
    475364        @-strip --strip-unneeded $(WD)/{,s}bin/* 
     
    479368ch-%: 
    480369        make -C $(PKG)/$* stage2 
    481  
    482 ch-glibc-32: 
    483         make -C $(PKG)/glibc stage2-32 
    484  
    485 re-adjust-toolchain: 
    486         make -C $(PKG)/binutils re-adjust-toolchain 
    487370 
    488371adjusting-toolchain: 
     
    534417endif 
    535418        @install -m755 scripts/{net-setup,greeting,livecd-login,ll} $(MP)/usr/bin/ 
    536         @sed -e 's|_LINKER_|$(LINKER)|' -e 's|/lib/|/$(LIB_MAYBE64)/|' scripts/shutdown-helper > $(MP)/usr/bin/shutdown-helper 
     419        @sed -e 's|_LINKER_|$(LINKER)|' -e 's|/lib/|/$(LIB_MAYBE64)/|' \ 
     420         scripts/shutdown-helper > $(MP)/usr/bin/shutdown-helper 
    537421        @chmod 755 $(MP)/usr/bin/shutdown-helper 
    538422        @cp -ra root $(MP)/etc/skel 
    539 ifndef CROSS 
    540         @-mv $(MP)/bin/uname.real $(MP)/bin/uname 
    541 endif 
    542423 
    543424iso: prepiso 
     
    547428ifeq ($(LFS-ARCH),x86) 
    548429        @cd $(MPBASE)/iso ; $(WD)/bin/mkisofs -z -R -l --allow-leading-dots -D -o \ 
    549         $(MPBASE)$(ROOT)/lfslivecd-$(VERSION).iso -b boot/isolinux/isolinux.bin \ 
     430        $(MPBASE)$(ROOT)/clfslivecd-$(VERSION).iso -b boot/isolinux/isolinux.bin \ 
    550431        -c boot/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table \ 
    551         -V "lfslivecd-$(VERSION)" ./ 
     432        -V "clfslivecd-$(VERSION)" ./ 
    552433endif 
    553434ifeq ($(LFS-ARCH),x86_64) 
    554435        @cd $(MPBASE)/iso ; $(WD)/bin/mkisofs -z -R -l --allow-leading-dots -D -o \ 
    555         $(MPBASE)$(ROOT)/lfslivecd-$(VERSION).iso -b boot/isolinux/isolinux.bin \ 
     436        $(MPBASE)$(ROOT)/clfslivecd-$(VERSION).iso -b boot/isolinux/isolinux.bin \ 
    556437        -c boot/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table \ 
    557         -V "lfslivecd-$(VERSION)" ./ 
     438        -V "clfslivecd-$(VERSION)" ./ 
    558439endif 
    559440ifeq ($(LFS-ARCH),ppc) 
    560441        @cd $(MP) ; ./usr/bin/mkisofs -z -hfs -part --allow-leading-dots \ 
    561442        -map $(MKTREE)/$(PKG)/yaboot/map.hfs -no-desktop \ 
    562         -hfs-volid "lfslivecd-$(VERSION)" -V "lfslivecd-$(VERSION)" \ 
    563         -hfs-bless iso/boot -r -v -o $(MKTREE)/lfslivecd-$(VERSION).iso iso \ 
     443        -hfs-volid "clfslivecd-$(VERSION)" -V "clfslivecd-$(VERSION)" \ 
     444        -hfs-bless iso/boot -r -v -o $(MKTREE)/clfslivecd-$(VERSION).iso iso \ 
    564445         >$(MKTREE)/iso.log 2>&1 
    565446        @if ! grep -q "Blessing" $(MKTREE)/iso.log ; then \ 
     
    568449ifeq ($(LFS-ARCH),sparc64) 
    569450        @cd $(MP) ; ./usr/bin/mkisofs -z -v -R -l -D --allow-leading-dots \ 
    570          -G iso/boot/isofs.b -B ... -r -V "lfslivecd-$(VERSION)" \ 
    571          -o $(MKTREE)/lfslivecd-$(VERSION).iso iso >$(MKTREE)/iso.log 2>&1 
     451         -G iso/boot/isofs.b -B ... -r -V "clfslivecd-$(VERSION)" \ 
     452         -o $(MKTREE)/clfslivecd-$(VERSION).iso iso >$(MKTREE)/iso.log 2>&1 
    572453endif 
    573454 
     
    577458clean: unmount 
    578459        @-rm -rf $(WD) $(MP)$(WD) $(MPBASE)$(WD) 
    579 ifdef CROSS 
    580460        @-rm -rf $(CROSS_WD) $(MP)$(CROSS_WD) 
    581 endif 
    582         @-userdel lfs 
    583         @-groupdel lfs 
    584         @-rm -rf /home/lfs 
    585         @-rm {prepiso,lfsuser,unamemod,lfs-base,extend-lfs,lfs-strip,} 
    586         @-rm {sqfs.log,lfs-strip,pre-wget} 
    587         @-rm $(PKG)/binutils/{,re-}adjust-toolchain 
     461        @-userdel clfs 
     462        @-groupdel clfs 
     463        @-rm -rf /home/clfs 
     464        @-rm {prepiso,clfsuser,clfs-base,extend-clfs,clfs-strip,} 
     465        @-rm {sqfs.log,pre-wget} 
    588466        @-for i in `ls $(PKG)` ; do $(MAKE) -C $(PKG)/$$i clean ; done 
    589467        @find $(PKG) -name "pass*" -exec rm -rf \{} \; 
    590468        @find $(PKG) -name "stage*" -exec rm -rf \{} \; 
    591469        @find $(PKG) -name "*.log" -exec rm -rf \{} \; 
    592 ifdef CROSS 
    593470        @find $(PKG) -name "cross*" -exec rm -rf \{} \; 
    594471        @rm -f $(PKG)/glibc/headers 
    595472        @rm -f adjusting-toolchain 
    596 endif 
    597473        @echo find $(PKG)/binutils/* ! -path '$(PKG)/binutils/vars*' -xtype d -exec rm -rf \{} \; 
    598474        @rm -f $(PKG)/wget/prebuild 
    599475        @rm -f $(PKG)/binutils/{a.out,dummy.c,.spectest} 
    600         @-rm -f $(SRC) $(ROOT) $(LFSSRC) 
     476        @-rm -f $(SRC) $(ROOT) $(CLFSSRC) 
    601477 
    602478scrub: clean 
    603479        @-rm root.ext2 
    604         @-rm lfslivecd-$(VERSION).iso 
     480        @-rm clfslivecd-$(VERSION).iso 
    605481 
    606482clean_sources: 
    607         @-rm $(SRC) ; rm -rf $(LFSSRC) $(MP)$(LFSSRC) 
     483        @-rm $(SRC) ; rm -rf $(CLFSSRC) $(MP)$(CLFSSRC) 
    608484        @find packages/* -xtype l -exec rm -f \{} \; 
    609485 
     
    628504 
    629505.PHONY: unmount clean_sources scrub clean iso chroot-gvim update-fontsdir \ 
    630         final-environment re-adjust-toolchain ch-% ch-glibc-32 lfs-adjust-toolchain \ 
    631         lfs-%-scpt lfs-%-scpt-32 lfs-%-pass1 lfs-%-pass2 createfiles \ 
    632         gvim %-only-ch lfs-%-only lfs-%-only-pass1 lfs-%-only-pass2 lfs-wget \ 
    633         lfs-rm-wget blfs post-bash pre-bash tools pre-which zeroes 
     506        final-environment ch-% adjusting-toolchain clfs-%-scpt createfiles \ 
     507        gvim %-only-ch clfs-%-only pre-wget pre-which blfs-common extend-% \ 
     508        cross-pre-bash cross-post-bash tools zeroes 
  • branches/cross/packages/bash/Makefile

    r1498 r1599  
    2626 
    2727compile-stage1: 
    28 ifndef CROSS 
    29         ./configure --prefix=$(WD) --without-bash-malloc 
    30 else 
    31         cp Makefile.in Makefile.in.orig 
    32         sed "s@size \$$(Program)@$(LFS_TARGET)-&@g"  Makefile.in.orig > Makefile.in 
    3328        echo "ac_cv_func_setvbuf_reversed=no" >> config.cache 
    3429        CC="$${CC} $(64FLAGS)" CXX="$${CXX} $(64FLAGS)" \ 
    35          ./configure --prefix=$(WD) \ 
    36          --without-bash-malloc --host=$(LFS_TARGET) \ 
     30         ./configure --prefix=$(WD) --build=$(CLFS_HOST) \ 
     31         --host=$(LFS_TARGET) --without-bash-malloc \ 
    3732         --cache-file=config.cache 
    38 endif 
    3933        make 
    4034        make install 
     
    5448         Makefile.in 
    5549        patch -Np1 -i ../$(PATCH1) 
    56 ifndef CROSS 
    5750        ./configure --prefix=/usr --bindir=/bin --without-bash-malloc \ 
    5851         --with-installed-readline 
    59 else 
    60         CC="gcc $(64FLAGS)" CXX="g++ $(64FLAGS)" \ 
    61          ./configure --prefix=/usr --bindir=/bin \ 
    62          --without-bash-malloc --with-installed-readline 
    63 endif 
    6452        make $(PM) 
    6553        make install 
  • branches/cross/packages/binutils/Makefile

    r1469 r1599  
    22 
    33NM= binutils 
    4 VRS= 2.16.1 
     4VRS= 2.17 
    55DIR= $(NM)-$(VRS) 
     6 
    67FILE= $(DIR).tar.bz2 
    78URL-$(FILE)= $(HTTP)/$(NM)/$(FILE) 
    8 SHA-$(FILE)= 5c80fd5657da47efc16a63fdd93ef7395319fbbf 
     9SHA-$(FILE)= a557686eef68362ea31a3aa41ce274e3eeae1ef0 
    910 
    1011PATCH40= $(DIR)-posix-1.patch 
     
    1213SHA-$(PATCH40)= 7bd70eb6359d9ed5c1691208dfa321d68c5e1d9c 
    1314 
    14 PATCH41= $(DIR)-genscripts_multilib-1.patch 
    15 URL-$(PATCH41)= $(HTTP)/$(NM)/$(PATCH41) 
    16 SHA-$(PATCH41)= 1d7cb62e537ddfea800d7790149e3ce74d415928 
    17  
    1815include $(CROSSVARS) 
    19  
    20 DEPS= $(FILE) $(PATCHES) 
    2116 
    2217# Targets 
     
    2621LINKER ?= ld-linux.so.2 
    2722 
    28 cross: $(DEPS) 
     23cross: $(FILE) $(PATCH40) 
    2924        $(sep_dir_build) 
    30         for i in $(DEPS) ; do cp $(SRC)/$$i $(LFSSRC) ; done 
     25        cp $(SRC)/{$(FILE),$(PATCH40)} $(LFSSRC) 
    3126