diff options
author | John Crispin <john@phrozen.org> | 2020-02-26 13:01:32 +0100 |
---|---|---|
committer | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2020-02-28 17:50:46 +0100 |
commit | 29c6ddd99eeb0aa9fa7f65fbe50c5b12ead67918 (patch) | |
tree | e42347e7ef7917c9c26affb6f5e3c9276fdd0882 /target/linux/ipq807x/image | |
parent | 272e0a702a2bcfb383c59051f37c87dcdbe844f5 (diff) | |
download | upstream-29c6ddd99eeb0aa9fa7f65fbe50c5b12ead67918.tar.gz upstream-29c6ddd99eeb0aa9fa7f65fbe50c5b12ead67918.tar.bz2 upstream-29c6ddd99eeb0aa9fa7f65fbe50c5b12ead67918.zip |
ipq807x: add very basic target support
This is still missing a lot of love but people want to start working on it
so lets give them a common baseline.
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/ipq807x/image')
-rw-r--r-- | target/linux/ipq807x/image/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/target/linux/ipq807x/image/Makefile b/target/linux/ipq807x/image/Makefile new file mode 100644 index 0000000000..0a19a9ea57 --- /dev/null +++ b/target/linux/ipq807x/image/Makefile @@ -0,0 +1,40 @@ +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/image.mk + +IPQ807X_KERNEL_LOADADDR = 0x41080000 +DEVICE_DTS_CONFIG = "config@hk01" + +define Image/BuildKernel/FIT + gzip -9 -c $(KDIR)/Image > $(KDIR)/Image.gz + $(call CompressLzma,$(KDIR)/Image,$(KDIR)/Image.gz) + $(call Image/BuildKernel/MkFIT,$(1), $(KDIR)/Image.gz, $(DTS_DIR)/qcom/$(1).dtb,gzip,$(2),$(2)) + $(CP) $(KDIR)/fit-$(1).itb $(BIN_DIR)/$(IMG_PREFIX)-$(1)-fit-uImage.itb + mkdir -p $(BIN_DIR)/dtbs/ + $(CP) $(DTS_DIR)/qcom/ipq*.dtb $(BIN_DIR)/dtbs/ + $(CP) $(KDIR)/Image $(BIN_DIR)/dtbs/ +endef + +define Image/BuildKernel/FITInitramfs + $(CP) $(KDIR)/Image-initramfs $(BIN_DIR)/dtbs/ + $(CP) $(KDIR)/Image-initramfs $(BIN_DIR)/$(IMG_PREFIX)-vmlinux-initramfs.bin + $(call Image/BuildKernel/MkFIT,$(1), $(KDIR)/Image-initramfs, $(DTS_DIR)/qcom/$(1).dtb, none,$(2),$(2),-initramfs) + $(CP) $(KDIR)/fit-$(1)-initramfs.itb $(BIN_DIR)/$(IMG_PREFIX)-$(1)-fit-uImage-initramfs.itb +endef + +define Image/Build/squashfs + $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) +endef + +define Image/BuildKernel + $(call Image/BuildKernel/FIT,ipq8074-hk01,$(IPQ807X_KERNEL_LOADADDR)) +endef + +define Image/BuildKernel/Initramfs + $(call Image/BuildKernel/FITInitramfs,ipq8074-hk01,$(IPQ807X_KERNEL_LOADADDR)) +endef + +define Image/Build + $(call Image/Build/$(1),$(1)) +endef + +$(eval $(call BuildImage)) |