Skip to contentSkip to conversation

Allow to override WKS_FILE variable

PATCH Superseded Sergey Bostandzhyan 1 participant 2 messages Feb 11, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Allow to override WKS_FILE variable

From: Sergey 'Jin' Bostandzhyan <[email protected]>

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(-)
conf/machine/firefly-rk3288.conf +1 -1
index 0a9eab6..2a5f0ba 100644
@@ -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 ?= " \
conf/machine/tinker-board-s.conf +1 -1
index a7fe2fc..f7b17e4 100644
@@ -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 ?= " \
conf/machine/tinker-board.conf +1 -1
index c8cac7b..1c3c08a 100644
@@ -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 ?= " \
conf/machine/vyasa-rk3288.conf +1 -1
index 1e1eba4..c92c821 100644
@@ -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 ?= " \
Signature · 1 line
2.24.1
#1 lore raw

PATCH v2 1/1 Allow to override WKS_FILE variable

From: Sergey 'Jin' Bostandzhyan <[email protected]>

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(-)
conf/machine/firefly-rk3288.conf +1 -1
index 0a9eab6..2a5f0ba 100644
@@ -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 ?= " \
conf/machine/tinker-board-s.conf +1 -1
index a7fe2fc..f7b17e4 100644
@@ -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 ?= " \
conf/machine/tinker-board.conf +1 -1
index c8cac7b..1c3c08a 100644
@@ -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 ?= " \
conf/machine/vyasa-rk3288.conf +1 -1
index 1e1eba4..c92c821 100644
@@ -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 ?= " \
Signature · 1 line
2.24.1