Changeset 1983

Show
Ignore:
Timestamp:
07/25/07 16:46:21 (1 year ago)
Author:
jhuntwork
Message:

All changes necessary to natively build a working x86_64 minimal CD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/x86_64/Makefile

    r1976 r1983  
    3333ROOTFS_MEGS := 1536 
    3434 
    35 export VERSION ?= x86-6.3-pre2 
    36 export CFLAGS ?= -O2 -pipe -s -fno-strict-aliasing -mtune=i686 
     35export VERSION ?= x86_64-6.3-min-pre1 
     36export CFLAGS ?= -O2 -pipe -s -fno-strict-aliasing 
    3737export CXXFLAGS ?= $(CFLAGS) 
    38 export LFS_TARGET ?= i486-pc-linux-gnu 
     38export LFS_TARGET ?= x86_64-unknown-linux-gnu 
    3939 
    4040 
     
    147147        -install -d $(MP)/opt/{bin,doc,include,info} 
    148148        -install -d $(MP)/opt/{lib,man/man{1,2,3,4,5,6,7,8}} 
     149        -if [ ! -L $(MP)/lib64 ] ; then ln -s lib $(MP)/lib64 ; fi 
     150        -if [ ! -L $(MP)/usr/lib64 ] ; then ln -s lib $(MP)/usr/lib64 ; fi 
    149151        -mknod -m 600 $(MP)/dev/console c 5 1 
    150152        -mknod -m 666 $(MP)/dev/null c 1 3 
     
    263265        ch-sysfsutils ch-pcmcia-cs ch-pcmciautils \ 
    264266        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 
     267        ch-fuse ch-dosfstools ch-ntfsprogs ch-bin86 ch-lilo ch-syslinux \ 
     268        ch-scsi-firmware ch-net-firmware ch-initramfs 
    268269        make update-caches 
    269270 
     
    349350 
    350351update-caches: 
    351         cd /usr/share/fonts ; mkfontscale ; mkfontdir ; fc-cache -f 
    352352        mandb -c 2>/dev/null 
    353353        echo 'dummy / ext2 defaults 0 0' >/etc/mtab 
  • branches/x86_64/isolinux/isolinux.cfg

    r1769 r1983  
    88  kernel linux 
    99  append initrd=initramfs_data_cpio.gz 
    10  
    11 label linux64 
    12   kernel linux64 
    13   append initrd=initramfs_data_cpio.gz 
  • branches/x86_64/isolinux/options.msg

    r1769 r1983  
    99792 = 1024x768x24    791 = 1024x768x16 
    1010789 = 800x600x24     788 = 800x600x16 
    11  
    12 A 64-bit kernel for use with CLFS is available as "linux64" 
    1311 
    1412To set your timezone, add TZ=your_timezone anywhere 
  • branches/x86_64/packages/LFS-BOOK/Makefile

    r1976 r1983  
    1111#SHA-$(FILE)= 729bcf04d8e4ed0af3c58daf0d289e94d6385052 
    1212 
    13 REV= 8225 
     13REV= 8250 
    1414REVPARM= -r $(REV) 
    1515 
    16 URL= svn://svn.linuxfromscratch.org/LFS/trunk/BOOK 
     16URL= svn://svn.linuxfromscratch.org/LFS/branches/x86_64/BOOK 
    1717 
    1818# Targets 
  • branches/x86_64/packages/bin86/Makefile

    r1884 r1983  
    99SHA-$(FILE)= 656f06b4b26d08412132e338baa25e42d713eeec 
    1010 
     11PATCH= $(DIR)-x86_64-1.patch 
     12URL-$(PATCH)= http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/$(PATCH) 
     13SHA-$(PATCH)= 2c967c062fbee4e40ca1bf55feec2033e132e0a9 
     14 
    1115# Targets 
    1216 
     
    1721        'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)' 
    1822 
    19 stage2: Makefile $(FILE) 
     23stage2: Makefile $(FILE) $(PATCH) 
    2024        $(std_build) 
    2125 
    2226compile-stage2: 
     27        patch -Np1 -i ../$(PATCH) 
    2328        make PREFIX=/usr MANDIR=/usr/share/man/man1 
    2429        make PREFIX=/usr MANDIR=/usr/share/man/man1 install 
  • branches/x86_64/packages/binutils/Makefile

    r1835 r1983  
    2525        unset CFLAGS ; make -C ld LIB_PATH=$(WD)/lib 
    2626        cp -v ld/ld-new $(WD)/bin 
     27        ln -sv lib $(WD)/lib64 
    2728 
    2829adjust-toolchain: 
     
    3132        mv -v $(WD)/bin/{ld-new,ld} 
    3233        ln -sv $(WD)/bin/ld $(WD)/$$(gcc -dumpmachine)/bin/ld 
    33         gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' \ 
     34        gcc -dumpspecs | sed 's@/lib64/ld-linux-x86-64.so.2@/tools&@g' \ 
    3435          > `dirname $$(gcc -print-libgcc-file-name)`/specs 
    3536        GCC_INCLUDEDIR=`dirname $$(gcc -print-libgcc-file-name)`/include && \ 
     
    6263        ln -sv $(WD)/bin/ld $(WD)/$$(gcc -dumpmachine)/bin/ld 
    6364        gcc -dumpspecs | sed \ 
    64             -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' \ 
     65            -e 's@/tools/lib64/ld-linux-x86-64.so.2@/lib64/ld-linux-x86-64.so.2@g' \ 
    6566            -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' \ 
    6667            -e '/\*cpp:/{n;s@$$@ -isystem /usr/include@}' > \ 
  • branches/x86_64/packages/gcc/Makefile

    r1976 r1983  
    2626        unset CFLAGS ; CC="gcc -B/usr/bin/" ../$(DIR)/configure --prefix=$(WD) \ 
    2727         --with-local-prefix=$(WD) --disable-nls --enable-shared \ 
    28          --enable-languages=c --enable-static 
     28         --enable-languages=c --enable-static --disable-multilib 
    2929        unset CFLAGS ; make bootstrap 
    3030        unset CFLAGS ; make install 
     
    4141         > gcc/Makefile.in 
    4242        cd ../$(DIR) ; patch -Np1 -i ../$(PATCH1) 
     43        cd ../$(DIR) ; cp -v gcc/config/i386/t-linux64{,.tmp} && \ 
     44         sed '/MULTILIB_OSDIRNAMES/d' gcc/config/i386/t-linux64.tmp \ 
     45         > gcc/config/i386/t-linux64 
    4346# --enable-static overrides the unsuitable default in config.site 
    4447        ../$(DIR)/configure --prefix=$(WD) \ 
    4548         --with-local-prefix=$(WD) --enable-clocale=gnu --enable-shared \ 
    4649         --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ \ 
    47          --disable-libstdcxx-pch --enable-static 
     50         --disable-libstdcxx-pch --enable-static --disable-multilib 
    4851        make 
    4952        make install 
     
    6669        ../$(DIR)/configure --prefix=/usr --libexecdir=/usr/lib \ 
    6770         --enable-shared --enable-threads=posix --enable-__cxa_atexit \ 
    68          --enable-clocale=gnu --enable-languages=c,c++ --enable-static 
     71         --enable-clocale=gnu --enable-languages=c,c++ --enable-static \ 
     72         --disable-multilib 
    6973        make 
    7074        -make -k check 
  • branches/x86_64/packages/glibc/Makefile

    r1976 r1983  
    5151        cd ../$(DIR) ; unpack ../$(FILE2) ; mv glibc-libidn-$(VRS) libidn 
    5252        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/ld-linux-x86-64.so.2 -o|' \ 
    5454                ../$(DIR)/scripts/test-installation.pl 
    5555# LiveCD specific locale additions 
  • branches/x86_64/packages/initramfs/Makefile

    r1976 r1983  
    2121compile-stage2: 
    2222        mkdir -p $(WDIR)/{bin,dev,etc/udev/rules.d,lib/firmware,sbin,sys,proc} 
     23        ln -s lib $(WDIR)/lib64 
    2324        cp /etc/udev/udev.conf $(WDIR)/etc/udev/udev.conf 
    2425        cp /etc/udev/rules.d/{05-*,2*,60-*} $(WDIR)/etc/udev/rules.d 
     
    3031        mknod -m 664 $(WDIR)/dev/null c 1 3 
    3132        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)/lib 
     33        cp /lib/{libblkid.so.1,libc.so.6,libdl.so.2,ld-linux-x86-64.so.2} $(WDIR)/lib 
    3334        cp /lib/{libncursesw.so.5,libreadline.so.5,libhistory.so.5} $(WDIR)/lib 
    3435        cp /lib/{libpthread.so.0,librt.so.1,libuuid.so.1} $(WDIR)/lib 
  • branches/x86_64/packages/initramfs/init.in

    r1976 r1983  
    318318# Clean up and free some memory 
    319319rm -rf /bin /sbin /lib /sys /proc /dev /.tmpfs /init /fakecd.iso.head 
    320 ./lib/ld-linux.so.2 --library-path ./lib ./bin/mount -n --move . / 
    321 exec ../lib/ld-linux.so.2 --library-path ./lib ./usr/sbin/chroot . "$init" "$@" 
     320./lib/ld-linux-x86-64.so.2 --library-path ./lib ./bin/mount -n --move . / 
     321exec ../lib/ld-linux-x86-64.so.2 --library-path ./lib ./usr/sbin/chroot . "$init" "$@" 
  • branches/x86_64/packages/linux/Makefile

    r1976 r1983  
    2626        mkdir -p /boot/isolinux 
    2727        make mrproper 
    28         cp ../config.x86 .config 
     28        cp $(ROOT)/packages/linux64/config.x86_64 .config 
    2929        make 
    3030        make modules_install 
    31         cp -v arch/i386/boot/bzImage /boot/isolinux/linux 
     31        cp -v arch/x86_64/boot/bzImage /boot/isolinux/linux 
    3232        cd .. ; ./debian-style-headers.sh $(DIR) 
    3333 
  • branches/x86_64/packages/traceroute/Makefile

    r1816 r1983  
    99SHA-$(FILE)= c68ec1b09539a8e9655c138031c3090bda92d5f1 
    1010 
     11PATCH= $(DIR)-update_config-1.patch 
     12URL-$(PATCH)= http://svn.cross-lfs.org/svn/repos/patches/$(NM)/$(PATCH) 
     13SHA-$(PATCH)= f52c3772bcd63f9f06137128d8e3b64c7c533743 
     14 
    1115# Targets 
    1216 
     
    1721        'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)' 
    1822 
    19 stage2: Makefile $(FILE) 
     23stage2: Makefile $(FILE) $(PATCH) 
    2024        $(std_build) 
    2125 
    2226compile-stage2: 
     27        patch -Np1 -i ../$(PATCH) 
    2328        sed -i -e 's/-o bin/-o root/' Makefile.in 
    2429        ./configure --prefix=/usr 
  • branches/x86_64/packages/unzip/Makefile

    r1871 r1983  
    2121 
    2222compile-stage2: 
    23         make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux 
     23        make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux_noasm 
    2424        make prefix=/usr MANDIR=/usr/share/man/man1 install 
    2525 
  • branches/x86_64/packages/zlib/Makefile

    r1816 r1983  
    2929 
    3030compile-stage2: 
    31         ./configure --prefix=/usr --shared --libdir=/lib 
    32         make 
    33         make install 
     31        unset CFLAGS ; ./configure --prefix=/usr --shared --libdir=/lib 
     32        unset CFLAGS ; make 
     33        unset CFLAGS ; make install 
    3434        rm /lib/libz.so 
    3535        ln -sf ../../lib/libz.so.$(VRS) /usr/lib/libz.so 
    36         make clean 
    37         ./configure --prefix=/usr 
    38         make 
    39         make install 
     36        unset CFLAGS ; make clean 
     37        unset CFLAGS ; ./configure --prefix=/usr 
     38        unset CFLAGS ; make 
     39        unset CFLAGS ; make install 
    4040        chmod 644 /usr/lib/libz.a 
    4141