From 709cab91d217a3ba31629b312a28cd6daef77319 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 3 Apr 2014 14:26:54 +0000 Subject: lantiq: BT Home Hub 2B support - board support Board support patch for BT Home Hub 2B Signed-off-by: Ben Mulvihill SVN-Revision: 40370 --- target/linux/lantiq/image/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'target/linux/lantiq/image') diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile index 34591c7..9b3b98f 100644 --- a/target/linux/lantiq/image/Makefile +++ b/target/linux/lantiq/image/Makefile @@ -6,12 +6,13 @@ # # boards missing since devicetree update -#EASY50712 ARV3527P BTHOMEHUBV2B BTHOMEHUBV2BOPENRG +#EASY50712 ARV3527P include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk JFFS2_BLOCKSIZE = 64k 128k 256k +NAND_BLOCKSIZE = 512:16k LOADER_MAKE := $(NO_TRACE_MAKE) -C lzma-loader KDIR=$(KDIR) @@ -133,6 +134,13 @@ define Image/Build/jffs2-256k cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image endef +define Image/Build/jffs2-nand-512-16k + dd if=$(KDIR)/uImage-$(2) of=$(KDIR)/uImage-$(2)-$(1) bs=16k conv=sync + $(CP) $(KDIR)/uImage-$(2)-$(1) $(BIN_DIR)/uImage-$(2)-$(1) + $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/root-$(2)-$(1) + cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image +endef + define Image/Build/ubifs ifneq ($($(PROFILE)_UBIFS_OPTS),) @@ -254,6 +262,9 @@ endif ifeq ($(CONFIG_TARGET_lantiq_xway),y) # Danube +Image/BuildKernel/Profile/BTHOMEHUBV2B=$(call Image/BuildKernel/Template,BTHOMEHUBV2B) +Image/Build/Profile/BTHOMEHUBV2B=$(call Image/Build/$(1),$(1),BTHOMEHUBV2B) + Image/BuildKernel/Profile/EASY50712=$(call Image/BuildKernel/Template,EASY50712) Image/Build/Profile/EASY50712=$(call Image/Build/$(1),$(1),EASY50712) -- cgit v1.1