r1935 - in trunk: . etc packages/initramfs packages/linux packages/linux/fakes-for-fglrx packages/linux64 packages/linux64/fakes-for-fglrx

alexander at linuxfromscratch.org alexander at linuxfromscratch.org
Wed Jun 27 01:28:55 PDT 2007


Author: alexander
Date: 2007-06-27 02:28:54 -0600 (Wed, 27 Jun 2007)
New Revision: 1935

Added:
   trunk/packages/linux/fakes-for-fglrx/
   trunk/packages/linux/fakes-for-fglrx/cat.in
   trunk/packages/linux64/fakes-for-fglrx/
   trunk/packages/linux64/fakes-for-fglrx/cat.in
Modified:
   trunk/Makefile
   trunk/etc/profile
   trunk/packages/initramfs/init.in
   trunk/packages/linux/Makefile
   trunk/packages/linux/fakes-for-fglrx/arch
   trunk/packages/linux/fakes-for-fglrx/makepkg
   trunk/packages/linux/fakes-for-fglrx/uname.in
   trunk/packages/linux64/Makefile
   trunk/packages/linux64/fakes-for-fglrx/arch
   trunk/packages/linux64/fakes-for-fglrx/gcc
   trunk/packages/linux64/fakes-for-fglrx/ld
   trunk/packages/linux64/fakes-for-fglrx/makepkg
   trunk/packages/linux64/fakes-for-fglrx/objdump
   trunk/packages/linux64/fakes-for-fglrx/uname.in
Log:
Added fglrx - this time, it built successfully on ums.usu.ru

Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2007-06-26 16:08:36 UTC (rev 1934)
+++ trunk/Makefile	2007-06-27 08:28:54 UTC (rev 1935)
@@ -114,14 +114,15 @@
 $(MKTREE): root.ext2
 	mkdir -p $(MP) $(MPBASE)$(SRC) $(MPBASE)$(WD)/bin $(MPBASE)/iso/boot
 	mount -o loop root.ext2 $(MP)
-	-rm -f $(MP)/boot
 	mkdir -p $(MKTREE) $(MP)$(SRC) $(MP)$(WD)
 	mkdir -p $(MP)/boot $(MP)$(LFSSRC) $(MPBASE)/iso$(LFSSRC)
+	mkdir -p $(MP)/drivers $(MPBASE)/iso/drivers
 	mount --bind $(MPBASE)$(ROOT) $(MP)$(ROOT)
 	mount --bind $(MPBASE)$(WD) $(MP)$(WD)
 	mount --bind $(MPBASE)$(SRC) $(MP)$(SRC)
 	mount --bind $(MPBASE)/iso/boot $(MP)/boot
 	mount --bind $(MPBASE)/iso$(LFSSRC) $(MP)$(LFSSRC)
+	mount --bind $(MPBASE)/iso/drivers $(MP)/drivers
 	-ln -nsf $(MPBASE)$(WD) /
 	-ln -nsf $(MPBASE)$(SRC) /
 	-ln -nsf $(MPBASE)$(ROOT) /
@@ -272,9 +273,7 @@
 	ch-fuse ch-dosfstools ch-ntfsprogs \
 	ch-vbetool ch-bin86 ch-grub ch-lilo ch-syslinux \
 	ch-binutils64 ch-gcc64 ch-linux64 ch-scsi-firmware ch-net-firmware \
-	ch-initramfs
-	# Proprietary drivers disabled - NVIDIA crashes, ATI is too fat
-	# make ch-gcc33 ch-proprietary-drivers
+	ch-initramfs ch-gcc33
 	make update-caches
 
 wget-list:
@@ -437,13 +436,13 @@
 	-umount $(MP)/proc
 	-umount $(MP)/sys
 	-umount $(MP)/boot
+	-umount $(MP)/drivers
 	-umount $(MP)$(LFSSRC)
 	-umount $(MP)$(SRC)
 	-umount $(MP)$(WD)
 	-umount $(MP)$(ROOT)
 	-rmdir $(MP)$(SRC) $(MP)$(WD) $(MP)$(ROOT)
-	-rmdir $(MP)/boot $(MP)$(LFSSRC)
-	-ln -s /dev/shm/.cdrom/boot $(MP)
+	-rmdir $(MP)/boot $(MP)$(LFSSRC) $(MP)/drivers
 	-umount $(MP)
 
 zeroes: $(MKTREE)

Modified: trunk/etc/profile
===================================================================
--- trunk/etc/profile	2007-06-26 16:08:36 UTC (rev 1934)
+++ trunk/etc/profile	2007-06-27 08:28:54 UTC (rev 1935)
@@ -15,7 +15,10 @@
 XMODIFIERS=@im=SCIM
 GTK_IM_MODULE=scim
 
+# For fglrx
+LIBGL_DRIVERS_DIR=/usr/lib/dri
+
 export PATH INPUTRC G_FILENAME_ENCODING PKG_CONFIG_PATH XML_CATALOG_FILES
-export WWW_HOME NNTPSERVER TERMCMD XMODIFIERS GTK_IM_MODULE
+export WWW_HOME NNTPSERVER TERMCMD XMODIFIERS GTK_IM_MODULE LIBGL_DRIVERS_DIR
 
 source /etc/bashrc

Modified: trunk/packages/initramfs/init.in
===================================================================
--- trunk/packages/initramfs/init.in	2007-06-26 16:08:36 UTC (rev 1934)
+++ trunk/packages/initramfs/init.in	2007-06-27 08:28:54 UTC (rev 1935)
@@ -156,6 +156,7 @@
 	ln -sf issue.$cdtype /.root/etc/issue
 	if [ "$cdtype" = "fullcd" ] ; then
 		ln -sf /dev/shm/.cdrom/lfs-sources /.root/lfs-sources
+		ln -sf /dev/shm/.cdrom/drivers /.root/drivers
 	fi
 	if [ "$nodhcp" = "1" ] ; then
 		rm -f /.root/etc/udev/rules.d/76-network.rules

Modified: trunk/packages/linux/Makefile
===================================================================
--- trunk/packages/linux/Makefile	2007-06-26 16:08:36 UTC (rev 1934)
+++ trunk/packages/linux/Makefile	2007-06-27 08:28:54 UTC (rev 1935)
@@ -10,6 +10,10 @@
 
 PATCH3= tulip-is-not-a-proper-driver-for-dm910x.patch
 
+FILE1= ati-driver-installer-8.38.6-x86.x86_64.run
+URL-$(FILE1)= http://www2.ati.com/drivers/linux/$(FILE1)
+SHA-$(FILE1)= a4320c6d3c6716740971c18bbd5e62b0b452cc67
+
 # Targets
 
 include $(ROOT)/scripts/functions
@@ -18,7 +22,7 @@
 	chroot "$(MP)" $(chenv-blfs) \
 	'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)'
 
-stage2: Makefile $(FILE)
+stage2: Makefile $(FILE) $(FILE1)
 	$(std_build)
 
 compile-stage2:
@@ -29,9 +33,15 @@
 	make
 	make modules_install
 	cp -v arch/i386/boot/bzImage /boot/isolinux/linux
+	sed 's/VERSION/$(VRS)/' ../fakes-for-fglrx/uname.in >../fakes-for-fglrx/uname
+	sed 's/VERSION/$(VRS)/' ../fakes-for-fglrx/cat.in >../fakes-for-fglrx/cat
+	chmod 755 ../fakes-for-fglrx/{uname,cat}
+	PATH=$$PWD/../fakes-for-fglrx:$$PATH sh ../$(FILE1) --buildpkg Slackware/All
+	mv *.tgz /drivers
 	cd .. ; ./debian-style-headers.sh $(DIR)
 
 clean:
 	-rm -rf $(DIR)
+	-rm fakes-for-fglrx/{uname,cat}
 
 .PHONY: clean chroot compile-stage2

Copied: trunk/packages/linux/fakes-for-fglrx (from rev 1933, trunk/packages/linux/fakes-for-fglrx)

Added: trunk/packages/linux/fakes-for-fglrx/cat.in
===================================================================
--- trunk/packages/linux/fakes-for-fglrx/cat.in	                        (rev 0)
+++ trunk/packages/linux/fakes-for-fglrx/cat.in	2007-06-27 08:28:54 UTC (rev 1935)
@@ -0,0 +1,9 @@
+#!/bin/sh
+case "$1" in
+/proc/version)
+	echo "Linux version VERSION (root at lfslivecd) (gcc version 4.1.2) #1 SMP"
+	;;
+*)
+	/bin/cat "$@"
+	;;
+esac


Property changes on: trunk/packages/linux/fakes-for-fglrx/cat.in
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/packages/linux64/Makefile
===================================================================
--- trunk/packages/linux64/Makefile	2007-06-26 16:08:36 UTC (rev 1934)
+++ trunk/packages/linux64/Makefile	2007-06-27 08:28:54 UTC (rev 1935)
@@ -10,6 +10,10 @@
 
 PATCH3= tulip-is-not-a-proper-driver-for-dm910x.patch
 
+FILE1= ati-driver-installer-8.38.6-x86.x86_64.run
+URL-$(FILE1)= http://www2.ati.com/drivers/linux/$(FILE1)
+SHA-$(FILE1)= a4320c6d3c6716740971c18bbd5e62b0b452cc67
+
 # Targets
 
 include $(ROOT)/scripts/functions
@@ -18,7 +22,7 @@
 	chroot "$(MP)" $(chenv-blfs) \
 	'cd $(ROOT) && make ch-$(NM)64 $(chbash-post-bash)'
 
-stage2: Makefile $(FILE)
+stage2: Makefile $(FILE) $(FILE1)
 	$(std_build)
 
 compile-stage2:
@@ -27,10 +31,16 @@
 	cp ../config.x86_64 .config
 	PATH=$$PATH:$(WD)/bin make ARCH=x86_64 CROSS_COMPILE=x86_64-unknown-linux-gnu-
 	PATH=$$PATH:$(WD)/bin make modules_install ARCH=x86_64 CROSS_COMPILE=x86_64-unknown-linux-gnu-
+	sed 's/VERSION/$(VRS)/' ../fakes-for-fglrx/uname.in >../fakes-for-fglrx/uname
+	sed 's/VERSION/$(VRS)/' ../fakes-for-fglrx/cat.in >../fakes-for-fglrx/cat
+	chmod 755 ../fakes-for-fglrx/{uname,cat}
+	PATH=$$PWD/../fakes-for-fglrx:$$PATH sh ../$(FILE1) --buildpkg Slackware/Only_Module
+	mv *.tgz /drivers
 	rm /lib/modules/*-64bit/{source,build}
 	cp -v arch/x86_64/boot/bzImage /boot/isolinux/linux64
 
 clean:
 	-rm -rf $(DIR)
+	-rm -f fakes-for-fglrx/{uname,cat}
 
 .PHONY: clean chroot compile-stage2

Copied: trunk/packages/linux64/fakes-for-fglrx (from rev 1933, trunk/packages/linux64/fakes-for-fglrx)

Added: trunk/packages/linux64/fakes-for-fglrx/cat.in
===================================================================
--- trunk/packages/linux64/fakes-for-fglrx/cat.in	                        (rev 0)
+++ trunk/packages/linux64/fakes-for-fglrx/cat.in	2007-06-27 08:28:54 UTC (rev 1935)
@@ -0,0 +1,9 @@
+#!/bin/sh
+case "$1" in
+/proc/version)
+	echo "Linux version VERSION (root at lfslivecd) (gcc version 4.1.2) #1 SMP"
+	;;
+*)
+	/bin/cat "$@"
+	;;
+esac


Property changes on: trunk/packages/linux64/fakes-for-fglrx/cat.in
___________________________________________________________________
Name: svn:executable
   + *




More information about the livecd mailing list