aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/image/Makefile
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-04-03 14:26:54 +0000
committerJohn Crispin <john@openwrt.org>2014-04-03 14:26:54 +0000
commit709cab91d217a3ba31629b312a28cd6daef77319 (patch)
tree05119562d83e4678b8ffcd59e60c8f7637ade9ec /target/linux/lantiq/image/Makefile
parent469b8297fab3a589da4e598cb915e75dfd87dcba (diff)
downloadupstream-709cab91d217a3ba31629b312a28cd6daef77319.tar.gz
upstream-709cab91d217a3ba31629b312a28cd6daef77319.tar.bz2
upstream-709cab91d217a3ba31629b312a28cd6daef77319.zip
lantiq: BT Home Hub 2B support - board support
Board support patch for BT Home Hub 2B Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com> SVN-Revision: 40370
Diffstat (limited to 'target/linux/lantiq/image/Makefile')
-rw-r--r--target/linux/lantiq/image/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile
index 34591c7b50..9b3b98fd15 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)