summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-01-01 19:30:29 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-01-01 19:30:29 +0000
commit8854c9011925f0f849b5a1f68a106cdedb059f7e (patch)
treebac6958e08c8df33c79fcee0ad86145360c3a14b /target
parent1d3de89f3c93ac82006c933679dd3d4aba775c32 (diff)
downloadmtk-20170518-8854c9011925f0f849b5a1f68a106cdedb059f7e.zip
mtk-20170518-8854c9011925f0f849b5a1f68a106cdedb059f7e.tar.gz
mtk-20170518-8854c9011925f0f849b5a1f68a106cdedb059f7e.tar.bz2
ar71xx: add profile and build factory image for the Hornet-UB board
SVN-Revision: 29637
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/generic/profiles/alfa.mk13
-rw-r--r--target/linux/ar71xx/image/Makefile24
2 files changed, 24 insertions, 13 deletions
diff --git a/target/linux/ar71xx/generic/profiles/alfa.mk b/target/linux/ar71xx/generic/profiles/alfa.mk
index 6f56c45..8c09e60 100644
--- a/target/linux/ar71xx/generic/profiles/alfa.mk
+++ b/target/linux/ar71xx/generic/profiles/alfa.mk
@@ -5,6 +5,18 @@
# See /LICENSE for more information.
#
+define Profile/HORNETUB
+ NAME:=ALFA Network Hornet-UB board
+ PACKAGES:=kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev
+endef
+
+define Profile/HORNETUB/Description
+ Package set optimized for the ALFA Network Hornet-UB board.
+endef
+
+$(eval $(call Profile,HORNETUB))
+
+
define Profile/ALFANX
NAME:=ALFA Network N2/N5 board
PACKAGES:=
@@ -15,3 +27,4 @@ define Profile/ALFANX/Description
endef
$(eval $(call Profile,ALFANX))
+
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index ebb1257..ebedf57 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -302,19 +302,19 @@ define Image/Build/Planex
fi
endef
+alfa_mtdlayout_8M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6144k(rootfs),1600k(kernel),64k(nvram),64k(art)ro,7744k@0x50000(firmware)
define Image/Build/ALFA
- $(call MkuImageLzma,$(2),$(3) $($(4)))
- $(call Sysupgrade/RK,$(1),$(2),$(5),$(6))
+ $(call MkuImageLzma,$(2),$(3))
+ $(call Sysupgrade/RK,$(1),$(2),$(4),$(5))
if [ -e "$(call sysupname,$(1),$(2))" ]; then \
rm -rf $(KDIR)/$(1); \
mkdir -p $(KDIR)/$(1); \
cd $(KDIR)/$(1); \
- cp $(KDIR)/vmlinux-$(2).uImage $(KDIR)/$(1)/vmlinux.gz.uImage; \
- cp $(KDIR)/root.$(1) $(KDIR)/$(1)/pb9x-2.6.31-jffs2; \
- $(TAR) zcf $(call factoryname,$(1),$(2)) -C $(KDIR)/$(1) \
- vmlinux.gz.uImage pb9x-2.6.31-jffs2; \
+ cp $(KDIR)/vmlinux-$(2).uImage $(KDIR)/$(1)/$(6); \
+ cp $(KDIR)/root.$(1) $(KDIR)/$(1)/$(7); \
+ $(TAR) zcf $(call factoryname,$(1),$(2)) -C $(KDIR)/$(1) $(6) $(7); \
( \
- echo $(7) | dd bs=32 count=1 conv=sync; \
+ echo WRM7222C | dd bs=32 count=1 conv=sync; \
echo -ne '\xfe'; \
) >> $(call factoryname,$(1),$(2)); \
fi
@@ -582,10 +582,9 @@ define Image/Build/Template/128k/jffs2-128k
$(call Image/Build/$(1),jffs2-128k,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
endef
-alfa_nx_cmdline=board=ALFA-NX console=ttyS0,115200
-alfa_nx_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6144k(rootfs),1600k(kernel),64k(nvram),64k(art)ro,7744k@0x50000(firmware)
+alfa_nx_cmdline=board=ALFA-NX console=ttyS0,115200 $(alfa_mtdlayout_8M)
define Image/Build/Profile/ALFANX
- $(call Image/Build/Template/$(fs_64k)/$(1),ALFA,alfa-nx,$(alfa_nx_cmdline),alfa_nx_mtdlayout,1638400,6291456,WRM7222C)
+ $(call Image/Build/Template/$(fs_64k)/$(1),ALFA,alfa-nx,$(alfa_nx_cmdline),1638400,6291456,vmlinux.gz.uImage,pb9x-2.6.31-jffs2)
endef
ap121_mtdlayout_2M=mtdparts=spi0.0:64k(u-boot)ro,1216k(rootfs),704k(kernel),64k(art)ro,1920k@0x10000(firmware)
@@ -655,10 +654,9 @@ define Image/Build/Profile/EAP7660D
$(call Image/Build/Template/$(fs_128k)/$(1),PB4X,eap7660d,$(eap7660d_cmdline))
endef
-hornetub_cmdline=board=HORNET-UB console=ttyATH0,115200
-hornetub_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6144k(rootfs),1600k(kernel),64k(nvram),64k(art)ro,7744k@0x50000(firmware)
+hornetub_cmdline=board=HORNET-UB console=ttyATH0,115200 $(alfa_mtdlayout_8M)
define Image/Build/Profile/HORNETUB
- $(call Image/Build/Template/$(fs_64k)/$(1),AthLzma,hornet-ub,$(hornetub_cmdline),hornetub_mtdlayout,1638400,6291456,RK)
+ $(call Image/Build/Template/$(fs_64k)/$(1),ALFA,hornet-ub,$(hornetub_cmdline),1638400,6291456,kernel_image,rootfs_image)
endef
ja76pf_cmdline=board=JA76PF console=ttyS0,115200