Changeset 1599
- Timestamp:
- 07/12/06 01:06:53 (2 years ago)
- Location:
- branches/cross
- Files:
-
- 2 added
- 8 removed
- 14 modified
-
Makefile (modified) (20 diffs)
-
packages/bash/Makefile (modified) (2 diffs)
-
packages/binutils/Makefile (modified) (6 diffs)
-
packages/binutils/vars/vars.cross_x86 (deleted)
-
packages/binutils/vars/vars.sparc64 (modified) (1 diff)
-
packages/binutils/vars/vars.x86_64 (modified) (1 diff)
-
packages/gcc/Makefile (modified) (5 diffs)
-
packages/gcc/vars/vars.cross_x86 (deleted)
-
packages/glibc/Makefile (modified) (5 diffs)
-
packages/glibc/glibc-2.3.6-supported_locales-2.patch (deleted)
-
packages/glibc/glibc-20051107-supported_locales-2.patch (deleted)
-
packages/glibc/vars (deleted)
-
packages/linux-headers (added)
-
packages/linux-headers/Makefile (added)
-
packages/linux-libc-headers (deleted)
-
packages/linux/Makefile (modified) (2 diffs)
-
packages/ncurses/Makefile (modified) (2 diffs)
-
packages/wget/Makefile (modified) (2 diffs)
-
uname (deleted)
-
vars/vars.cross_x86 (deleted)
-
vars/vars.ppc (modified) (1 diff)
-
vars/vars.sparc64 (modified) (2 diffs)
-
vars/vars.x86 (modified) (1 diff)
-
vars/vars.x86_64 (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cross/Makefile
r1520 r1599 32 32 # HTTP: Default http server for the lfs-base packages 33 33 # HTTPBLFS: Default http server for the BLFS packages 34 # BUILD_MINIMAL: Build minimal blfs packages if 1 34 35 35 36 export LFS-ARCH ?= x86 … … 38 39 export timezone ?= GMT 39 40 export pagesize ?= letter 41 export BUILD_MINIMAL ?= 0 40 42 export ROOT ?= /lfs-livecd 41 43 #export PM ?= -j3 42 export HTTP ?= http://ftp.lfs-matrix.net/pub/lfs/conglomeration 44 export HTTP ?= http://ftp.lfs-matrix.net/pub/clfs/conglomeration 45 export HTTPLFS ?= http://ftp.lfs-matrix.net/pub/lfs/conglomeration 43 46 export HTTPBLFS ?= http://ftp.lfs-matrix.net/pub/blfs/conglomeration 44 47 45 48 # Directory variables 46 49 #============================================================================== 47 export HOSTNAME := lfslivecd50 export HOSTNAME := clfslivecd 48 51 export WD := /tools 49 52 export SRC := /sources 50 export LFSSRC := / lfs-sources53 export LFSSRC := /clfs-sources 51 54 export PKG := packages 52 55 export MKTREE := $(MP)$(ROOT) 53 56 57 export KVRS := 2.6.17.4 54 58 ROOTFS_MEGS := 1536 55 59 … … 61 65 # The following lines need to be all on one line - no newlines. 62 66 #=============================================================================== 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 67 export 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 69 export 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 74 70 75 71 export 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 76 72 77 73 export 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 75 export clfsbash := set +h && umask 022 && cd $(MKTREE) 81 76 82 77 export 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 … … 105 100 # lfs-base, extend-lfs and iso, then it echoes a notice that it's finished. :) 106 101 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 102 all: test-host clfs-base extend-clfs iso 103 @echo "The LiveCD, $(MPBASE)$(ROOT)/clfslivecd-$(VERSION).iso, is ready!" 111 104 112 105 test-host: … … 133 126 mount --bind $(MPBASE)$(SRC) $(MP)$(SRC) 134 127 mount --bind $(MPBASE)/iso/boot $(MP)/boot 135 mkdir -p $(MP)$( LFSSRC)128 mkdir -p $(MP)$(CLFSSRC) 136 129 -ln -nsf $(MPBASE)$(WD) / 137 130 -ln -nsf $(MPBASE)$(SRC) / 138 131 -ln -nsf $(MPBASE)$(ROOT) / 139 -ln -nsf $(MP)$(LFSSRC) / 140 ifdef CROSS 132 -ln -nsf $(MP)$(CLFSSRC) / 141 133 mkdir -p $(MPBASE)$(CROSS_WD)/bin $(MP)$(CROSS_WD) 142 134 mount --bind $(MPBASE)$(CROSS_WD) $(MP)$(CROSS_WD) 143 135 -ln -nsf $(MP)$(CROSS_WD) / 144 endif145 136 -mkdir -p $(MP)/{proc,sys,dev/shm,dev/pts} 146 137 -mount -t proc proc $(MP)/proc … … 167 158 -install -d $(MP)/opt/{bin,doc,include,info} 168 159 -install -d $(MP)/opt/{lib,man/man{1,2,3,4,5,6,7,8}} 169 ifdef CROSS170 160 -install -d $(MP)/{,usr/{,local},opt}/$(LIB_MAYBE64) 171 161 -install -d /usr/lib/locale 172 162 -ln -s ../lib/locale /usr/$(LIB_MAYBE64) 173 endif174 163 -mknod -m 600 $(MP)/dev/console c 5 1 175 164 -mknod -m 666 $(MP)/dev/null c 1 3 … … 186 175 -ln -s /proc/kcore $(MP)/dev/core 187 176 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 #============================================================================== 179 clfs-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) 209 182 @cp $(ROOT)/scripts/unpack $(WD)/bin 210 183 @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'" 213 186 @install -m644 -oroot -groot $(ROOT)/etc/{group,passwd} $(MP)/etc 214 187 @-ln -s $(WD)/bin/bash $(MP)/bin/bash … … 219 192 make cross-post-bash $(chbash-post-bash)' 220 193 @-ln -s $(WD)/bin/wget $(MP)/usr/bin/wget 221 endif222 194 223 195 stop-here: 224 196 exit 1 225 197 226 extend- lfs: $(MP)$(ROOT)198 extend-clfs: $(MP)$(ROOT) 227 199 @cp $(WD)/bin/which $(MP)/usr/bin 228 200 @cp $(ROOT)/scripts/unpack $(MP)/bin 229 if ndef CROSS201 ifeq ($(BUILD_MINIMAL),0) 230 202 @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)' 232 206 else 233 ifeq ($(LFS-ARCH),sparc64)234 207 @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)' 246 209 @chroot "$(MP)" $(chenv-blfs) 'set +h && cd $(ROOT) && \ 247 210 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 211 endif 212 213 clfsuser: 214 @-groupadd clfs 215 @-useradd -s /bin/bash -g clfs -m -k /dev/null clfs 254 216 @touch $@ 255 217 … … 261 223 pre-wget: 262 224 @make -C $(PKG)/wget prebuild 263 ifdef CROSS264 225 @-ln -s $(WD)/bin/wget $(CROSS_WD)/bin 265 endif266 226 @touch $@ 267 227 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 228 cross-tools: pre-which pre-wget clfs-linux-headers-scpt clfs-binutils-cross \ 229 clfs-gcc-cross-static clfs-glibc-scpt clfs-gcc-cross 230 231 tools: 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 285 236 @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 238 cross-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 244 cross-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 250 blfs-common: ch-openssl ch-wget ch-reiserfsprogs ch-xfsprogs ch-nano ch-joe \ 323 251 ch-screen ch-pkgconfig ch-libidn ch-curl ch-zip ch-unzip ch-lynx ch-libxml2 ch-expat \ 324 ch-subversion ch-l fs-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 \ 326 254 ch-fontconfig ch-Xorg-modular ch-freefont ch-inputattach ch-fonts-dejavu \ 327 255 ch-fonts-kochi ch-fonts-firefly ch-fonts-baekmuk ch-libjpeg ch-libtiff \ … … 343 271 ch-libchewing ch-scim-chewing ch-scim-pinyin ch-scim-input-pad \ 344 272 ch-bin86 ch-lilo ch-syslinux update-fontsdir 345 ifeq ($(LFS-ARCH),ppc)346 make ch-yaboot347 endif348 273 349 274 blfs-minimal: ch-openssl ch-wget ch-reiserfsprogs ch-xfsprogs ch-nano ch-joe \ 350 275 ch-screen ch-pkgconfig ch-libidn ch-curl ch-zip ch-unzip ch-lynx ch-libxml2 \ 351 ch-expat ch-subversion ch-l fs-bootscripts ch-livecd-bootscripts ch-docbook-xml ch-libxslt \276 ch-expat ch-subversion ch-livecd-bootscripts ch-docbook-xml ch-libxslt \ 352 277 ch-docbook-xsl ch-html_tidy ch-LFS-BOOK ch-openssh ch-glib2 ch-cvs \ 353 278 ch-popt ch-samba ch-irssi ch-wireless_tools ch-tcpwrappers ch-portmap \ … … 360 285 ch-man-fr ch-man-pages-es ch-man-pages-it ch-manpages-de ch-manpages-ru \ 361 286 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 288 extend-x86: ch-grub 289 290 extend-x86_64: ch-grub 291 292 extend-sparc64: ch-elftoaout ch-silo 293 294 extend-ppc: ch-yaboot 386 295 387 296 wget-list: … … 397 306 #============================================================================== 398 307 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' 309 clfs-%-only: clfsuser 310 @su - clfs -c "$(clfsenv) '$(clfsbash) && $(MAKE) clfs-$*-scpt'" 409 311 410 312 # The following takes the form 'make [package name]-only-ch' … … 432 334 @-$(WD)/bin/ln -s $(WD)/lib/libgcc_s.so{,.1} /usr/lib 433 335 @-$(WD)/bin/ln -s bash /bin/sh 434 ifdef CROSS435 336 @-$(WD)/bin/ln -s $(WD)/lib64/libgcc_s.so{,.1} /usr/lib64 436 endif437 337 @touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} 438 338 @chgrp utmp /var/run/utmp /var/log/lastlog 439 339 @chmod 664 /var/run/utmp /var/log/lastlog 440 ifdef CROSS441 340 @chmod 600 /var/log/btmp 442 endif443 341 @mv $(WD)/etc/resolv.conf /etc 444 342 … … 447 345 #============================================================================== 448 346 449 lfs-%-scpt:347 clfs-%-scpt: 450 348 $(MAKE) -C $(PKG)/$* stage1 451 349 452 lfs-%-scpt-32: 453 $(MAKE) -C $(PKG)/$* stage1-32 454 455 lfs-%-cross: 350 clfs-%-cross: 456 351 $(MAKE) -C $(PKG)/$* cross 457 352 458 lfs-glibc-headers: 459 $(MAKE) -C $(PKG)/glibc headers 460 461 lfs-gcc-cross-static: 353 clfs-gcc-cross-static: 462 354 $(MAKE) -C $(PKG)/gcc cross-static 463 355 464 lfs-%-pass1:356 clfs-%-pass1: 465 357 $(MAKE) -C $(PKG)/$* pass1 466 358 467 lfs-%-pass2:359 clfs-%-pass2: 468 360 $(MAKE) -C $(PKG)/$* pass2 469 361 470 lfs-adjust-toolchain: 471 $(MAKE) -C $(PKG)/binutils adjust-toolchain 472 473 lfs-strip: 362 clfs-strip: 474 363 @-strip --strip-debug $(WD)/lib/* 475 364 @-strip --strip-unneeded $(WD)/{,s}bin/* … … 479 368 ch-%: 480 369 make -C $(PKG)/$* stage2 481 482 ch-glibc-32:483 make -C $(PKG)/glibc stage2-32484 485 re-adjust-toolchain:486 make -C $(PKG)/binutils re-adjust-toolchain487 370 488 371 adjusting-toolchain: … … 534 417 endif 535 418 @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 537 421 @chmod 755 $(MP)/usr/bin/shutdown-helper 538 422 @cp -ra root $(MP)/etc/skel 539 ifndef CROSS540 @-mv $(MP)/bin/uname.real $(MP)/bin/uname541 endif542 423 543 424 iso: prepiso … … 547 428 ifeq ($(LFS-ARCH),x86) 548 429 @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 \ 550 431 -c boot/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table \ 551 -V " lfslivecd-$(VERSION)" ./432 -V "clfslivecd-$(VERSION)" ./ 552 433 endif 553 434 ifeq ($(LFS-ARCH),x86_64) 554 435 @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 \ 556 437 -c boot/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table \ 557 -V " lfslivecd-$(VERSION)" ./438 -V "clfslivecd-$(VERSION)" ./ 558 439 endif 559 440 ifeq ($(LFS-ARCH),ppc) 560 441 @cd $(MP) ; ./usr/bin/mkisofs -z -hfs -part --allow-leading-dots \ 561 442 -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 \ 564 445 >$(MKTREE)/iso.log 2>&1 565 446 @if ! grep -q "Blessing" $(MKTREE)/iso.log ; then \ … … 568 449 ifeq ($(LFS-ARCH),sparc64) 569 450 @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>&1451 -G iso/boot/isofs.b -B ... -r -V "clfslivecd-$(VERSION)" \ 452 -o $(MKTREE)/clfslivecd-$(VERSION).iso iso >$(MKTREE)/iso.log 2>&1 572 453 endif 573 454 … … 577 458 clean: unmount 578 459 @-rm -rf $(WD) $(MP)$(WD) $(MPBASE)$(WD) 579 ifdef CROSS580 460 @-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} 588 466 @-for i in `ls $(PKG)` ; do $(MAKE) -C $(PKG)/$$i clean ; done 589 467 @find $(PKG) -name "pass*" -exec rm -rf \{} \; 590 468 @find $(PKG) -name "stage*" -exec rm -rf \{} \; 591 469 @find $(PKG) -name "*.log" -exec rm -rf \{} \; 592 ifdef CROSS593 470 @find $(PKG) -name "cross*" -exec rm -rf \{} \; 594 471 @rm -f $(PKG)/glibc/headers 595 472 @rm -f adjusting-toolchain 596 endif597 473 @echo find $(PKG)/binutils/* ! -path '$(PKG)/binutils/vars*' -xtype d -exec rm -rf \{} \; 598 474 @rm -f $(PKG)/wget/prebuild 599 475 @rm -f $(PKG)/binutils/{a.out,dummy.c,.spectest} 600 @-rm -f $(SRC) $(ROOT) $( LFSSRC)476 @-rm -f $(SRC) $(ROOT) $(CLFSSRC) 601 477 602 478 scrub: clean 603 479 @-rm root.ext2 604 @-rm lfslivecd-$(VERSION).iso480 @-rm clfslivecd-$(VERSION).iso 605 481 606 482 clean_sources: 607 @-rm $(SRC) ; rm -rf $( LFSSRC) $(MP)$(LFSSRC)483 @-rm $(SRC) ; rm -rf $(CLFSSRC) $(MP)$(CLFSSRC) 608 484 @find packages/* -xtype l -exec rm -f \{} \; 609 485 … … 628 504 629 505 .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 26 26 27 27 compile-stage1: 28 ifndef CROSS29 ./configure --prefix=$(WD) --without-bash-malloc30 else31 cp Makefile.in Makefile.in.orig32 sed "s@size \$$(Program)@$(LFS_TARGET)-&@g" Makefile.in.orig > Makefile.in33 28 echo "ac_cv_func_setvbuf_reversed=no" >> config.cache 34 29 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 \ 37 32 --cache-file=config.cache 38 endif39 33 make 40 34 make install … … 54 48 Makefile.in 55 49 patch -Np1 -i ../$(PATCH1) 56 ifndef CROSS57 50 ./configure --prefix=/usr --bindir=/bin --without-bash-malloc \ 58 51 --with-installed-readline 59 else60 CC="gcc $(64FLAGS)" CXX="g++ $(64FLAGS)" \61 ./configure --prefix=/usr --bindir=/bin \62 --without-bash-malloc --with-installed-readline63 endif64 52 make $(PM) 65 53 make install -
branches/cross/packages/binutils/Makefile
r1469 r1599 2 2 3 3 NM= binutils 4 VRS= 2.1 6.14 VRS= 2.17 5 5 DIR= $(NM)-$(VRS) 6 6 7 FILE= $(DIR).tar.bz2 7 8 URL-$(FILE)= $(HTTP)/$(NM)/$(FILE) 8 SHA-$(FILE)= 5c80fd5657da47efc16a63fdd93ef7395319fbbf9 SHA-$(FILE)= a557686eef68362ea31a3aa41ce274e3eeae1ef0 9 10 10 11 PATCH40= $(DIR)-posix-1.patch … … 12 13 SHA-$(PATCH40)= 7bd70eb6359d9ed5c1691208dfa321d68c5e1d9c 13 14 14 PATCH41= $(DIR)-genscripts_multilib-1.patch15 URL-$(PATCH41)= $(HTTP)/$(NM)/$(PATCH41)16 SHA-$(PATCH41)= 1d7cb62e537ddfea800d7790149e3ce74d41592817 18 15 include $(CROSSVARS) 19 20 DEPS= $(FILE) $(PATCHES)21 16 22 17 # Targets … … 26 21 LINKER ?= ld-linux.so.2 27 22 28 cross: $( DEPS)23 cross: $(FILE) $(PATCH40) 29 24 $(sep_dir_build) 30 for i in $(DEPS) ; do cp $(SRC)/$$i $(LFSSRC) ; done25 cp $(SRC)/{$(FILE),$(PATCH40)} $(LFSSRC) 31 26
