Skip to contentSkip to conversation

edgerouter: add edgerouter.wks

PATCH New Ed Bartosh 1 participant 1 message Jan 9, 2017

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 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]

---
 meta-yocto-bsp/conf/machine/edgerouter.conf | 2 +-
 meta-yocto-bsp/wic/edgerouter.wks           | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 meta-yocto-bsp/wic/edgerouter.wks
meta-yocto-bsp/conf/machine/edgerouter.conf +1 -1
index c6193d9..ce7de60 100644
@@ -21,6 +21,6 @@ MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
 IMAGE_FSTYPES ?= "jffs2 tar.bz2 wic wic.bmap"
 JFFS2_ERASEBLOCK = "0x10000"
 
-WKS_FILE ?= "sdimage-bootpart.wks"
+WKS_FILE ?= "edgerouter.wks"
 IMAGE_BOOT_FILES ?= "vmlinux;vmlinux.64"
 do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
meta-yocto-bsp/wic/edgerouter.wks new file +4 -0
new file mode 100644
index 0000000..7176fe4
@@ -0,0 +1,4 @@
+# short-description: Create SD card image for Edgerouter
+# long-description: Create a partitioned SD card image for MIPS64 Edgerouter reference hardware.
+part /boot --source bootimg-partition --ondisk sda --fstype=vfat --label boot --active --align 4 --size 16
+part / --source rootfs --ondisk sda --fstype=ext4 --label root --align 4
Signature · 1 line
2.1.4