[meta-rockchip][PATCH] Allow to override WKS_FILE variable


Sergey Bostandzhyan
 

From: Sergey 'Jin' Bostandzhyan <jin@...>

Currently machine configs define the partition layout for each machine
by setting the WKS_FILE variable. However, there are situations where it
may be needed to use a different, non default layout. To simplify such
configurations we will set WKS_FILE using ?= so that it can be easily
overriden in local configurations.
---
conf/machine/firefly-rk3288.conf | 2 +-
conf/machine/tinker-board-s.conf | 2 +-
conf/machine/tinker-board.conf | 2 +-
conf/machine/vyasa-rk3288.conf | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/conf/machine/firefly-rk3288.conf b/conf/machine/firefly-rk3288.conf
index 0a9eab6..2a5f0ba 100644
--- a/conf/machine/firefly-rk3288.conf
+++ b/conf/machine/firefly-rk3288.conf
@@ -11,7 +11,7 @@ require conf/machine/include/rk3288.inc
KERNEL_DEVICETREE = "rk3288-firefly.dtb"
UBOOT_MACHINE = "firefly-rk3288_defconfig"

-WKS_FILE = "firefly-rk3288.wks"
+WKS_FILE ?= "firefly-rk3288.wks"
IMAGE_FSTYPES += "wic wic.bmap"

WKS_FILE_DEPENDS ?= " \
diff --git a/conf/machine/tinker-board-s.conf b/conf/machine/tinker-board-s.conf
index a7fe2fc..f7b17e4 100644
--- a/conf/machine/tinker-board-s.conf
+++ b/conf/machine/tinker-board-s.conf
@@ -12,7 +12,7 @@ UBOOT_MACHINE = "tinker-s-rk3288_defconfig"

RK_BOOT_DEVICE ?= "mmcblk1"

-WKS_FILE = "tinker-board.wks"
+WKS_FILE ?= "tinker-board.wks"
IMAGE_FSTYPES += "wic wic.bmap"

WKS_FILE_DEPENDS ?= " \
diff --git a/conf/machine/tinker-board.conf b/conf/machine/tinker-board.conf
index c8cac7b..1c3c08a 100644
--- a/conf/machine/tinker-board.conf
+++ b/conf/machine/tinker-board.conf
@@ -10,7 +10,7 @@ require conf/machine/include/rk3288.inc
KERNEL_DEVICETREE = "rk3288-tinker.dtb"
UBOOT_MACHINE = "tinker-rk3288_defconfig"

-WKS_FILE = "tinker-board.wks"
+WKS_FILE ?= "tinker-board.wks"
IMAGE_FSTYPES += "wic wic.bmap"

WKS_FILE_DEPENDS ?= " \
diff --git a/conf/machine/vyasa-rk3288.conf b/conf/machine/vyasa-rk3288.conf
index 1e1eba4..c92c821 100644
--- a/conf/machine/vyasa-rk3288.conf
+++ b/conf/machine/vyasa-rk3288.conf
@@ -14,7 +14,7 @@ KERNEL_EXTRA_ARGS += "LOADADDR=0x02000000"
UBOOT_MACHINE = "vyasa-rk3288_defconfig"

RK_BOOT_DEVICE = "mmcblk2"
-WKS_FILE = "vyasa-rk3288.wks"
+WKS_FILE ?= "vyasa-rk3288.wks"
IMAGE_FSTYPES += "wic wic.bmap"

WKS_FILE_DEPENDS ?= " \
--
2.24.1

Join yocto@lists.yoctoproject.org to automatically receive all group messages.