diff options
author | John Crispin <blogic@openwrt.org> | 2012-11-02 20:07:47 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-11-02 20:07:47 +0000 |
commit | 403bf784c99e40a6abbbffd4e418043c7446803d (patch) | |
tree | 99fb9ecb708a3236865e7333ce037db7bdf27563 /target/linux/lantiq/image/Makefile | |
parent | 2b11c5869f003306a4dccac92271883d702d6cf9 (diff) | |
download | master-187ad058-403bf784c99e40a6abbbffd4e418043c7446803d.tar.gz master-187ad058-403bf784c99e40a6abbbffd4e418043c7446803d.tar.bz2 master-187ad058-403bf784c99e40a6abbbffd4e418043c7446803d.zip |
[lantiq] adds dts files and make devicetree images buildable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34064 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/image/Makefile')
-rw-r--r-- | target/linux/lantiq/image/Makefile | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile index 96179a5bc1..de5365e676 100644 --- a/target/linux/lantiq/image/Makefile +++ b/target/linux/lantiq/image/Makefile @@ -21,7 +21,12 @@ endef define PatchKernelLzma cp $(KDIR)/vmlinux $(KDIR)/vmlinux-$(1) +ifeq ($(CONFIG_LINUX_3_5),y) + $(LINUX_DIR)/scripts/dtc/dtc -O dtb -o $(KDIR)/$(1).dtb ./$(1).dts + $(STAGING_DIR_HOST)/bin/patch-dtb $(KDIR)/vmlinux-$(1) $(KDIR)/$(1).dtb +else $(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR)/vmlinux-$(1) '$(strip $(2))' +endif $(call CompressLzma,$(KDIR)/vmlinux-$(1),$(KDIR)/vmlinux-$(1).lzma) endef @@ -190,17 +195,18 @@ endif ifeq ($(CONFIG_TARGET_lantiq_ase),y) -Image/BuildKernel/Profile/EASY50601=$(call Image/BuildKernel/Template,EASY50601,$(ase_cmdline)) -Image/Build/Profile/EASY50601=$(call Image/Build/$(1),$(1),EASY50601) +Image/BuildKernel/Profile/DGN1000B=$(call Image/BuildKernel/Template,DGN1000B) +Image/Build/Profile/DGN1000B=$(call Image/Build/$(1),$(1),DGN1000B) -define Image/BuildKernel/Profile/Generic - $(call Image/BuildKernel/Template,NONE) -endef +endif + +ifeq ($(CONFIG_TARGET_lantiq_xway),y) + +Image/BuildKernel/Profile/EASY80920-NAND=$(call Image/BuildKernel/Template,EASY80920-NAND) +Image/Build/Profile/EASY80920-NAND=$(call Image/Build/$(1),$(1),EASY80920-NAND) +Image/BuildKernel/Profile/EASY80920-NOR=$(call Image/BuildKernel/Template,EASY80920-NOR) +Image/Build/Profile/EASY80920-NOR=$(call Image/Build/$(1),$(1),EASY80920-NOR) -define Image/Build/Profile/Generic - $(call Image/Build/$(1),$(1),NONE) - $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).rootfs -endef endif ifeq ($(CONFIG_TARGET_lantiq_vr9),y) |