]> rtime.felk.cvut.cz Git - boa5200/configs.git/commitdiff
Added my GNUmakefile for building linux master
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 6 Jan 2009 16:56:18 +0000 (17:56 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 6 Jan 2009 16:56:18 +0000 (17:56 +0100)
linux/GNUmakefile [new file with mode: 0644]

diff --git a/linux/GNUmakefile b/linux/GNUmakefile
new file mode 100644 (file)
index 0000000..50e7d31
--- /dev/null
@@ -0,0 +1,27 @@
+# Automatically generated by /home/martin/MPC5200/linuxppc-2.6.18-1_AM/scripts/mkmakefile: don't edit
+
+VERSION = 2
+PATCHLEVEL = 6
+
+KERNELSRC    := $(shell pwd)/..
+KERNELOUTPUT := $(shell pwd)
+
+MAKEFLAGS += --no-print-directory
+
+ARCH=ppc
+CROSS_COMPILE=powerpc-603e-linux-gnu-
+
+TFTPBOOT=/var/lib/tftpboot
+
+export INSTALL_MOD_PATH=$(shell pwd)/../../MPC5200_root
+
+.PHONY: all $(MAKECMDGOALS)
+
+all:
+       $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNELSRC) O=$(KERNELOUTPUT)
+       -$(if $(wildcard $(TFTPBOOT)),cp arch/ppc/boot/images/zImage.elf $(TFTPBOOT)/zImage.elf)
+
+Makefile:;
+
+$(filter-out all Makefile,$(MAKECMDGOALS)) %/:
+       $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNELSRC) O=$(KERNELOUTPUT) $@