brcm2708: define KERNELNAME accordingly
brcm2708: define KERNELNAME accordingly

Define KERNELNAME to Image to get the build system to copy this image
over $(KDIR) automatically for us.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39768 3c298f89-4303-0410-b956-a3cf2f4a3e73

--- a/target/linux/brcm2708/Makefile
+++ b/target/linux/brcm2708/Makefile
@@ -25,5 +25,7 @@
 	Currently produces SD Card image for Raspberry Pi.
 endef
 
+KERNELNAME="Image"
+
 $(eval $(call BuildTarget))
 

--- a/target/linux/brcm2708/image/Makefile
+++ b/target/linux/brcm2708/image/Makefile
@@ -7,10 +7,6 @@
 include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/image.mk
 include $(INCLUDE_DIR)/host.mk
-
-define Image/Prepare
-	cp $(LINUX_DIR)/arch/arm/boot/Image $(KDIR)/Image
-endef
 
 FAT32_BLOCK_SIZE=1024
 FAT32_BLOCKS=$(shell echo $$(($(CONFIG_BRCM2708_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE))))

comments