|
|
@ -57,14 +57,13 @@ define Image/Build/squashfs |
|
|
|
$(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image)
|
|
|
|
$(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image)
|
|
|
|
endef |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Image/BuildNAND/squashfs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifneq ($($(PROFILE)_UBI_OPTS),) |
|
|
|
ifneq ($($(PROFILE)_UBI_OPTS),) |
|
|
|
|
|
|
|
define Image/BuildNAND/squashfs
|
|
|
|
$(call prepare_generic_squashfs,$(KDIR)/root.$(1))
|
|
|
|
$(call prepare_generic_squashfs,$(KDIR)/root.$(1))
|
|
|
|
$(call Image/Build/UbinizeImage,$(PROFILE),,squashfs,$($(PROFILE)_UBI_OPTS))
|
|
|
|
$(call Image/Build/UbinizeImage,$(PROFILE),,squashfs,$($(PROFILE)_UBI_OPTS))
|
|
|
|
$(call Image/Build/SysupgradeNAND,$(PROFILE),$(1),$(KDIR)/uImage-$(PROFILE))
|
|
|
|
$(call Image/Build/SysupgradeNAND,$(PROFILE),$(1),$(KDIR)/uImage-$(PROFILE))
|
|
|
|
|
|
|
|
endef
|
|
|
|
endif |
|
|
|
endif |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DGN3500_SKERNEL=0x50000
|
|
|
|
DGN3500_SKERNEL=0x50000
|
|
|
|
DGN3500_SKERNEL_DECIMAL=327680
|
|
|
|
DGN3500_SKERNEL_DECIMAL=327680
|
|
|
@ -108,20 +107,18 @@ define Image/BuildEVA/squashfs |
|
|
|
$(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image.eva)
|
|
|
|
$(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image.eva)
|
|
|
|
endef |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Image/BuildEVA/ubifs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifneq ($($(PROFILE)_UBIFS_OPTS),) |
|
|
|
ifneq ($($(PROFILE)_UBIFS_OPTS),) |
|
|
|
|
|
|
|
define Image/BuildEVA/ubifs
|
|
|
|
$(CP) $(KDIR)/root.ubifs $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubifs
|
|
|
|
$(CP) $(KDIR)/root.ubifs $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubifs
|
|
|
|
|
|
|
|
endef
|
|
|
|
endif |
|
|
|
endif |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Image/BuildEVA/ubi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifneq ($($(PROFILE)_UBI_OPTS),) |
|
|
|
ifneq ($($(PROFILE)_UBI_OPTS),) |
|
|
|
|
|
|
|
define Image/BuildEVA/ubi
|
|
|
|
$(CP) $(KDIR)/root.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubi
|
|
|
|
$(CP) $(KDIR)/root.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubi
|
|
|
|
$(CP) $(KDIR)/root-overlay.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs-overlay.ubi
|
|
|
|
$(CP) $(KDIR)/root-overlay.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs-overlay.ubi
|
|
|
|
|
|
|
|
endef
|
|
|
|
endif |
|
|
|
endif |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Image/BuildLoader/squashfs |
|
|
|
define Image/BuildLoader/squashfs |
|
|
|
dd if=$(KDIR)/loader-$(2).bin of=$(KDIR)/loader-$(2).bin.padded bs=3072k conv=sync
|
|
|
|
dd if=$(KDIR)/loader-$(2).bin of=$(KDIR)/loader-$(2).bin.padded bs=3072k conv=sync
|
|
|
@ -148,60 +145,69 @@ define Image/Build/jffs2-256k |
|
|
|
cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
|
|
|
|
cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
|
|
|
|
endef |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Image/Build/ubifs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifneq ($($(PROFILE)_UBIFS_OPTS),) |
|
|
|
ifneq ($($(PROFILE)_UBIFS_OPTS),) |
|
|
|
|
|
|
|
define Image/Build/ubifs
|
|
|
|
$(CP) $(KDIR)/root.ubifs $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubifs
|
|
|
|
$(CP) $(KDIR)/root.ubifs $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubifs
|
|
|
|
|
|
|
|
endef
|
|
|
|
endif |
|
|
|
endif |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Image/Build/ubi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifneq ($($(PROFILE)_UBI_OPTS),) |
|
|
|
ifneq ($($(PROFILE)_UBI_OPTS),) |
|
|
|
|
|
|
|
define Image/Build/ubi
|
|
|
|
$(CP) $(KDIR)/root.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubi
|
|
|
|
$(CP) $(KDIR)/root.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubi
|
|
|
|
$(CP) $(KDIR)/root-overlay.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs-overlay.ubi
|
|
|
|
$(CP) $(KDIR)/root-overlay.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs-overlay.ubi
|
|
|
|
|
|
|
|
endef
|
|
|
|
endif |
|
|
|
endif |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Image/BuildNAND/ubifs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifneq ($($(PROFILE)_UBIFS_OPTS),) |
|
|
|
ifneq ($($(PROFILE)_UBIFS_OPTS),) |
|
|
|
ifneq ($($(PROFILE)_UBI_OPTS),) |
|
|
|
ifneq ($($(PROFILE)_UBI_OPTS),) |
|
|
|
|
|
|
|
define Image/BuildNAND/ubifs
|
|
|
|
$(call Image/Build/UbinizeImage,$(PROFILE),,ubifs,$($(PROFILE)_UBI_OPTS))
|
|
|
|
$(call Image/Build/UbinizeImage,$(PROFILE),,ubifs,$($(PROFILE)_UBI_OPTS))
|
|
|
|
$(call Image/Build/SysupgradeNAND,$(PROFILE),$(1),$(KDIR)/uImage-$(PROFILE))
|
|
|
|
$(call Image/Build/SysupgradeNAND,$(PROFILE),$(1),$(KDIR)/uImage-$(PROFILE))
|
|
|
|
|
|
|
|
endef
|
|
|
|
endif |
|
|
|
endif |
|
|
|
endif |
|
|
|
endif |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Image/BuildKernel/Template |
|
|
|
|
|
|
|
$(call PatchKernelLzma,$(1))
|
|
|
|
|
|
|
|
$(call MkImageLzma,$(1))
|
|
|
|
|
|
|
|
$(CP) $(KDIR)/uImage-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage
|
|
|
|
|
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) |
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) |
|
|
|
|
|
|
|
define Image/BuildKernel/InitramfsTemplate
|
|
|
|
$(call PatchKernelLzma,$(1),-initramfs)
|
|
|
|
$(call PatchKernelLzma,$(1),-initramfs)
|
|
|
|
$(call MkImageLzma,$(1),-initramfs)
|
|
|
|
$(call MkImageLzma,$(1),-initramfs)
|
|
|
|
$(CP) $(KDIR)/uImage-$(1)-initramfs $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage-initramfs
|
|
|
|
$(CP) $(KDIR)/uImage-$(1)-initramfs $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage-initramfs
|
|
|
|
|
|
|
|
endef
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Image/BuildKernel/Template |
|
|
|
|
|
|
|
$(call PatchKernelLzma,$(1))
|
|
|
|
|
|
|
|
$(call MkImageLzma,$(1))
|
|
|
|
|
|
|
|
$(CP) $(KDIR)/uImage-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage
|
|
|
|
|
|
|
|
$(Image/BuildKernel/InitramfsTemplate)
|
|
|
|
endef |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Image/BuildKernelLoader/Template |
|
|
|
|
|
|
|
$(CP) $(KDIR)/loader-$(1).bin $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-loader
|
|
|
|
|
|
|
|
$(CP) $(KDIR)/vmlinux-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux
|
|
|
|
|
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) |
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) |
|
|
|
|
|
|
|
define Image/BuildKernelLoader/InitramfsTemplate
|
|
|
|
$(CP) $(KDIR)/loader-initramfs-$(1).bin $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-initramfs-loader
|
|
|
|
$(CP) $(KDIR)/loader-initramfs-$(1).bin $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-initramfs-loader
|
|
|
|
$(CP) $(KDIR)/vmlinux-initramfs-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-initramfs
|
|
|
|
$(CP) $(KDIR)/vmlinux-initramfs-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-initramfs
|
|
|
|
|
|
|
|
endef
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Image/BuildKernelLoader/Template |
|
|
|
|
|
|
|
$(CP) $(KDIR)/loader-$(1).bin $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-loader
|
|
|
|
|
|
|
|
$(CP) $(KDIR)/vmlinux-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux
|
|
|
|
|
|
|
|
$(Image/BuildKernelLoader/InitramfsTemplate)
|
|
|
|
endef |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Image/Prepare/Kernel |
|
|
|
|
|
|
|
$(call PatchKernelLzma,$(1))
|
|
|
|
|
|
|
|
$(call Image/BuildLoader/Template,$(1))
|
|
|
|
|
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) |
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) |
|
|
|
|
|
|
|
define Image/Prepare/InitramfsTemplate
|
|
|
|
$(call PatchKernelLzma,$(1),-initramfs)
|
|
|
|
$(call PatchKernelLzma,$(1),-initramfs)
|
|
|
|
$(call Image/BuildLoader/Template,$(1),-initramfs)
|
|
|
|
$(call Image/BuildLoader/Template,$(1),-initramfs)
|
|
|
|
|
|
|
|
endef
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Image/Prepare/Kernel |
|
|
|
|
|
|
|
$(call PatchKernelLzma,$(1))
|
|
|
|
|
|
|
|
$(call Image/BuildLoader/Template,$(1))
|
|
|
|
|
|
|
|
$(Image/Prepare/InitramfsTemplate)
|
|
|
|
endef |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Image/BuildKernelEVA/Template |
|
|
|
define Image/BuildKernelEVA/Template |
|
|
@ -209,12 +215,6 @@ define Image/BuildKernelEVA/Template |
|
|
|
$(call MkImageEVA,$(1))
|
|
|
|
$(call MkImageEVA,$(1))
|
|
|
|
$(CP) $(KDIR)/$(1).eva.align.64k $(BIN_DIR)/$(IMG_PREFIX)-$(1).eva.align.64k
|
|
|
|
$(CP) $(KDIR)/$(1).eva.align.64k $(BIN_DIR)/$(IMG_PREFIX)-$(1).eva.align.64k
|
|
|
|
$(CP) $(KDIR)/$(1).eva.align.128k $(BIN_DIR)/$(IMG_PREFIX)-$(1).eva.align.128k
|
|
|
|
$(CP) $(KDIR)/$(1).eva.align.128k $(BIN_DIR)/$(IMG_PREFIX)-$(1).eva.align.128k
|
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) |
|
|
|
|
|
|
|
$(call PatchKernelLzma,$(1),-initramfs)
|
|
|
|
|
|
|
|
$(call MkImageEVA,$(1),-initramfs)
|
|
|
|
|
|
|
|
$(CP) $(KDIR)/$(1)-initramfs.eva.align.64k $(BIN_DIR)/$(IMG_PREFIX)-$(1)-initramfs.eva.align.64k
|
|
|
|
|
|
|
|
$(CP) $(KDIR)/$(1)-initramfs.eva.align.128k $(BIN_DIR)/$(IMG_PREFIX)-$(1)-initramfs.eva.align.128k
|
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
endef |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|