For the new build system. Extracts build flags from Linux
authorDavid Schleef <ds@schleef.org>
Sat, 1 Dec 2001 04:41:38 +0000 (04:41 +0000)
committerDavid Schleef <ds@schleef.org>
Sat, 1 Dec 2001 04:41:38 +0000 (04:41 +0000)
scripts/linux_flags/Makefile [new file with mode: 0644]

diff --git a/scripts/linux_flags/Makefile b/scripts/linux_flags/Makefile
new file mode 100644 (file)
index 0000000..248b7f6
--- /dev/null
@@ -0,0 +1,19 @@
+
+#LINUXDIR=/home/ds/linux/linux-2.4.16-rthal5
+
+all:
+       $(MAKE) -C $(LINUXDIR) SUBDIRS=$(PWD) modules
+
+modules:
+       echo LINUXDIR=$(LINUXDIR) >flags
+       echo ARCH=$(ARCH) >>flags
+       echo CFLAGS="$(CFLAGS)" >>flags
+       echo AFLAGS="$(AFLAGS)" >>flags
+       echo LDFLAGS="$(LDFLAGS)" >>flags
+       echo ARFLAGS="$(ARFLAGS)" >>flags
+       echo CROSS_COMPILE="$(CROSS_COMPILE)" >>flags
+       echo KERNELRELEASE="$(KERNELRELEASE)" >>flags
+
+
+
+