Revision: 105 http://svn.sourceforge.net/mactel-linux/?rev=105&view=rev Author: huceke Date: 2007-04-10 02:49:42 -0700 (Tue, 10 Apr 2007)
Log Message: ----------- Hopefully build on linux Added Paths: ----------- trunk/mach_linux_boot/Makefile.cross trunk/mach_linux_boot/env.sh trunk/mach_linux_boot/get_cross.sh Added: trunk/mach_linux_boot/Makefile.cross =================================================================== --- trunk/mach_linux_boot/Makefile.cross (rev 0) +++ trunk/mach_linux_boot/Makefile.cross 2007-04-10 09:49:42 UTC (rev 105) @@ -0,0 +1,21 @@ +.PHONY: inject_kernel gen_header +ARCH=i386 +OBJ=start.o loader_init.o vsprintf.o BootVideoHelpers.o sha1.o system.o + +test: clean gen_header $(OBJ) + i386-apple-darwin8-ld -arch $(ARCH) -o mach_kernel $(OBJ) -image_base 0xB000000 + +%.o: %.c + i386-apple-darwin8-gcc-4.0.1 -c -arch $(ARCH) -nostdlib -o $@ -c $< + +%.o: %.s + i386-apple-darwin8-gcc-4.0.1 -c -arch $(ARCH) -nostdlib -DASSEMBLER -o $@ -c $< + +clean: + rm -f *.o mach_kernel gen_header check_header + +gen_header: + gcc -o gen_header gen_header.c sha1.c + ./gen_header +# gcc -o check_header check_header.c sha1.c +# ./check_header Added: trunk/mach_linux_boot/env.sh =================================================================== --- trunk/mach_linux_boot/env.sh (rev 0) +++ trunk/mach_linux_boot/env.sh 2007-04-10 09:49:42 UTC (rev 105) @@ -0,0 +1 @@ +export PATH=/opt/darwin-cross/bin:$PATH Added: trunk/mach_linux_boot/get_cross.sh =================================================================== --- trunk/mach_linux_boot/get_cross.sh (rev 0) +++ trunk/mach_linux_boot/get_cross.sh 2007-04-10 09:49:42 UTC (rev 105) @@ -0,0 +1,11 @@ +#!/bin/sh + +wget -c --no-check-certificate https://turbine.slackworks.com/~ranger/darwin-cross/Fedora/5/i386/{darwin-cross-gcc-4.0-4.0.1-5341.1.i386.rpm,darwin-cross-headers-1.1-4.noarch.rpm,darwin-cross-odcctools-10.4-590.36-1.i386.rpm} + +alien --to-tgz {darwin-cross-gcc-4.0-4.0.1-5341.1.i386.rpm,darwin-cross-headers-1.1-4.noarch.rpm,darwin-cross-odcctools-10.4-590.36-1.i386.rpm} + +tar -xzf darwin-cross-gcc-4.0-4.0.1.tgz +tar -xzf darwin-cross-headers-1.1.tgz +tar -xzf darwin-cross-odcctools-10.4-590.36.tgz + +mv opt/darwin-cross . Property changes on: trunk/mach_linux_boot/get_cross.sh ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mactel-linux-devel mailing list Mactel-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel