From 9a0381f969f7eadc6d797ddcf397d0f5ca87d6a2 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 17 Jun 2016 18:50:07 +0200 Subject: lantiq: small fix for legacy profile builds Signed-off-by: John Crispin --- target/linux/lantiq/image/Makefile | 43 +++++++------------------------------- 1 file changed, 7 insertions(+), 36 deletions(-) (limited to 'target/linux') diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile index 91a3a36917..9f3c8ecba8 100644 --- a/target/linux/lantiq/image/Makefile +++ b/target/linux/lantiq/image/Makefile @@ -175,31 +175,6 @@ endif endef -define Image/InstallKernel/Template - -ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_KERNEL),) - $(INSTALL_DIR) $(TARGET_DIR)/boot - -ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_UIMAGE),) - $(CP) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage $(TARGET_DIR)/boot/ - ln -sf $(IMG_PREFIX)-$(1)-uImage $(TARGET_DIR)/boot/uImage -endif - -ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_ZIMAGE),) - $(CP) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-zImage $(TARGET_DIR)/boot/ - ln -sf $(IMG_PREFIX)-$(1)-zImage $(TARGET_DIR)/boot/zImage -endif -endif - -ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_DTB),) - $(INSTALL_DIR) $(TARGET_DIR)/boot - -ifneq ($(1),) - $(CP) $(KDIR)/$(1).dtb $(TARGET_DIR)/boot/ -endif -endif -endef - define Image/BuildKernel/Template $(call PatchKernelLzma,$(1)) $(call MkImageLzma,$(1)) @@ -220,7 +195,7 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) endif endef -define Image/Prepare/Profile +define Image/Prepare/Kernel $(call PatchKernelLzma,$(1)) $(call Image/BuildLoader/Template,$(1)) ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) @@ -793,6 +768,12 @@ define Device/VGV7519BRN endef TARGET_DEVICES += VGV7519BRN +define Image/Prepare + $(call Image/Prepare/Kernel,VG3503J) +endef + +endif + define Image/Prepare/Profile $(call Image/Build/Profile/$(1),loader) endef @@ -802,20 +783,10 @@ define Image/Build/Profile $(call Image/Build/Profile/$(1),$(2)) endef -define Image/Prepare - $(call Image/Prepare/Profile,VG3503J) -endef - -endif - define Image/BuildKernel $(call Image/BuildKernel/Profile/$(PROFILE)) endef -define Image/InstallKernel - $(call Image/InstallKernel/Template/$(PROFILE)) -endef - define Image/Build $(call Image/Build/Profile/$(PROFILE),$(1)) endef -- cgit v1.2.3