summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-01-09 20:33:01 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-16 18:08:20 +0000
commit90f5f60992ea023a1ae310249c9a3013e6602b27 (patch)
treea876270a1a98d8c753be8ab3380a2f366ca43969
parentacfb6bf01812a0e5c23a5a6b0a6add83796ea1b7 (diff)
downloadpoky-90f5f60992ea023a1ae310249c9a3013e6602b27.tar.gz
edgerouter: add edgerouter.wks
Currently edgerouter machine uses sdimage-bootpart.wks from scripts/lib/wic/canned-wks. It'd be easier to find this file if it's name contains machine name and it's located in the same layer. Added edgerouter.wks to meta-yocto-bsp/wic/ to make it independent from changes in oe-core and easier to maintain. [YOCTO #8719] (From meta-yocto rev: 6313c8fffe0dd4c3670ed06eca4c0a815d931e4a) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta-yocto-bsp/conf/machine/edgerouter.conf2
-rw-r--r--meta-yocto-bsp/wic/edgerouter.wks4
2 files changed, 5 insertions, 1 deletions
diff --git a/meta-yocto-bsp/conf/machine/edgerouter.conf b/meta-yocto-bsp/conf/machine/edgerouter.conf
index c6193d925a..ce7de60998 100644
--- a/meta-yocto-bsp/conf/machine/edgerouter.conf
+++ b/meta-yocto-bsp/conf/machine/edgerouter.conf
@@ -21,6 +21,6 @@ MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
21IMAGE_FSTYPES ?= "jffs2 tar.bz2 wic wic.bmap" 21IMAGE_FSTYPES ?= "jffs2 tar.bz2 wic wic.bmap"
22JFFS2_ERASEBLOCK = "0x10000" 22JFFS2_ERASEBLOCK = "0x10000"
23 23
24WKS_FILE ?= "sdimage-bootpart.wks" 24WKS_FILE ?= "edgerouter.wks"
25IMAGE_BOOT_FILES ?= "vmlinux;vmlinux.64" 25IMAGE_BOOT_FILES ?= "vmlinux;vmlinux.64"
26do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" 26do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
diff --git a/meta-yocto-bsp/wic/edgerouter.wks b/meta-yocto-bsp/wic/edgerouter.wks
new file mode 100644
index 0000000000..7176fe436b
--- /dev/null
+++ b/meta-yocto-bsp/wic/edgerouter.wks
@@ -0,0 +1,4 @@
1# short-description: Create SD card image for Edgerouter
2# long-description: Create a partitioned SD card image for MIPS64 Edgerouter reference hardware.
3part /boot --source bootimg-partition --ondisk sda --fstype=vfat --label boot --active --align 4 --size 16
4part / --source rootfs --ondisk sda --fstype=ext4 --label root --align 4