From 0b886a09406348706302574769bb0ef7f241c084 Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Thu, 3 Nov 2011 11:39:19 +0100 Subject: [PATCH] Added some improvements to Makefile --- devices/efikamx/Makefile | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/devices/efikamx/Makefile b/devices/efikamx/Makefile index 97c7d2a..de8b9b6 100644 --- a/devices/efikamx/Makefile +++ b/devices/efikamx/Makefile @@ -7,43 +7,44 @@ WORK = $(PWD)/work MKIMAGE = $(PWD)/../../work/mkimage ZIMAGE = $(PWD)/../../../kernel/efikamx/work/zImage INITRDGZ = $(PWD)/../../../initrd/work/initrd.gz +BOOTSCRIPT = $(PWD)/boot.script .PHONY: all clean distclean uImage boot.scr uInitrd -all: uImage boot.scr uInitrd +all: uImage bootscr uInitrd -clean: uImage-clean boot.scr-clean uInitrd-clean +clean: uImage-clean bootscr-clean uInitrd-clean distclean: clean -$(WORK)/zImage: $(ZIMAGE) - cp $(ZIMAGE) $(WORK) - -uImage: $(MKIMAGE) $(WORK)/zImage +$(WORK)/uImage: $(MKIMAGE) $(ZIMAGE) $(MKIMAGE) -A arm -O linux -a 0x90008000 -e 0x90008000 \ -T kernel -C none -n "Linux-2.6.31.14.22-efikamx" \ - -d $(WORK)/zImage $(WORK)/uImage + -d $(ZIMAGE) $(WORK)/uImage + +uImage: $(WORK)/uImage uImage-clean: - rm -f $(WORK)/uImage $(WORK)/zImage + rm -f $(WORK)/uImage -boot.scr: $(MKIMAGE) boot.script +$(WORK)/boot.scr: $(MKIMAGE) $(BOOTSCRIPT) $(MKIMAGE) -A arm -O linux -a 0 -e 0 \ -T script -C none -n "EfikaMX Boot Script" \ - -d boot.script $(WORK)/boot.scr + -d $(BOOTSCRIPT) $(WORK)/boot.scr -boot.scr-clean: - rm -f $(WORK)/boot.scr +bootscr: $(WORK)/boot.scr -$(WORK)/initrd.gz: $(INITRDGZ) - cp $(INITRDGZ) $(WORK) +bootscr-clean: + rm -f $(WORK)/boot.scr -uInitrd: $(MKIMAGE) $(WORK)/initrd.gz +$(WORK)/uInitrd: $(MKIMAGE) $(INITRDGZ) $(MKIMAGE) -A arm -O linux -a 0 -e 0 \ -T ramdisk -C none -n "EfikaMX Initrd Image" \ - -d $(WORK)/initrd.gz $(WORK)/uInitrd + -d $(INITRDGZ) $(WORK)/uInitrd + +uInitrd: $(WORK)/uInitrd uInitrd-clean: - rm -f $(WORK)/uInitrd $(WORK)/initrd.gz + rm -f $(WORK)/uInitrd # End of file -- 2.26.2