modbuild changes
authorDavid Schleef <ds@schleef.org>
Wed, 9 Aug 2000 20:45:00 +0000 (20:45 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 9 Aug 2000 20:45:00 +0000 (20:45 +0000)
Makefile.modbuild

index 8f472c6324fc11b35182a306bbd946ef7f858c6f..f75c8d2a2a3c7dc34b6caa3433e6debc1364100a 100644 (file)
@@ -7,7 +7,8 @@
 # headers
 # PCMCIADIR = /home/ds/stuff/pcmcia-cs-3.1.15
 
-ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
+#ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
+ARCH := ppc
 
 .EXPORT_ALL_VARIABLES:
 CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
@@ -21,6 +22,30 @@ FINDHPATH    = $(HPATH)/$(project)
 HOSTCC         =gcc
 HOSTCFLAGS     =-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
 
+CROSS_COMPILE  = powerpc-linux-
+
+#
+# Include the make variables (CC, etc...)
+#
+
+AS              = $(CROSS_COMPILE)as
+LD              = $(CROSS_COMPILE)ld
+CC              = $(CROSS_COMPILE)gcc
+CPP             = $(CC) -E
+AR              = $(CROSS_COMPILE)ar
+NM              = $(CROSS_COMPILE)nm
+STRIP           = $(CROSS_COMPILE)strip
+OBJCOPY         = $(CROSS_COMPILE)objcopy
+OBJDUMP         = $(CROSS_COMPILE)objdump
+MAKEFILES       = $(TOPDIR)/.config
+GENKSYMS        = /sbin/genksyms
+MODFLAGS        = -DMODULE
+PERL            = perl
+
+export  VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION KERNELRELEASE ARCH \
+       CONFIG_SHELL TOPDIR HPATH HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC \
+       CPP AR NM STRIP OBJCOPY OBJDUMP MAKE MAKEFILES GENKSYMS MODFLAGS PERL
+
 CFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
 # use '-fno-strict-aliasing', but only if the compiler can take it
 CFLAGS += $(shell if $(CC) -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-fno-strict-aliasing"; fi)