All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc
@ 2015-09-02  9:10 Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 02/15] b4860qds(-64b): define HV_CFG_M in machine conf Zhenhua Luo
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

* Add IPC_UST_SOC variables in qoriq-base.inc to define SOC type for ipc-ust
* Use IPC_UST_SOC in ipc-ust bb file

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/include/qoriq-base.inc     |  4 ++++
 recipes-extended/ipc-ust/ipc-ust_git.bb | 11 ++++++-----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/conf/machine/include/qoriq-base.inc b/conf/machine/include/qoriq-base.inc
index 1b49cc4..f85f18e 100644
--- a/conf/machine/include/qoriq-base.inc
+++ b/conf/machine/include/qoriq-base.inc
@@ -20,4 +20,8 @@ MACHINE_EXTRA_RRECOMMENDS ?= "udev-rules-qoriq"
 
 EXTRA_IMAGEDEPENDS += "u-boot cst-native"
 
+IPC_UST_SOC_bsc9131 = "B913x"
+IPC_UST_SOC_bsc9132 = "B913x"
+IPC_UST_SOC_b4 = "B4860"
+
 MACHINEOVERRIDES .= ":qoriq"
diff --git a/recipes-extended/ipc-ust/ipc-ust_git.bb b/recipes-extended/ipc-ust/ipc-ust_git.bb
index 5ba3411..c39716b 100644
--- a/recipes-extended/ipc-ust/ipc-ust_git.bb
+++ b/recipes-extended/ipc-ust/ipc-ust_git.bb
@@ -5,6 +5,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fa38cd73d71527dc6efb546474f64d10"
 
 require ipc.inc
 
+python () {
+    if not d.getVar("IPC_UST_SOC", True):
+        raise bb.parse.SkipPackage("IPC_UST_SOC is not defined in qoriq-base.inc")
+}
+
 S = "${WORKDIR}/git"
 
 # workaround for issue of parallel build, required a actual fix in ipc source
@@ -13,11 +18,7 @@ PARALLEL_MAKE = ""
 EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC}" AR="${AR}"'
 
 do_compile () {
-    case ${MACHINE} in
-        bsc9132qds|bsc9131rdb) SOC=B913x;;
-        b4860qds|b4420qds|b4860qds-64b) SOC=B4860;;
-    esac
-    oe_runmake ${SOC}=1
+    oe_runmake ${IPC_UST_SOC}=1
 }
 
 do_install () {
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 02/15] b4860qds(-64b): define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 03/15] p2041rdb: " Zhenhua Luo
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/b4860qds-64b.conf | 2 ++
 conf/machine/b4860qds.conf     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/conf/machine/b4860qds-64b.conf b/conf/machine/b4860qds-64b.conf
index 1a75a8c..5df5e78 100644
--- a/conf/machine/b4860qds-64b.conf
+++ b/conf/machine/b4860qds-64b.conf
@@ -18,6 +18,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "b4860qds"
+
 KERNEL_DEVICETREE ?= "b4860qds.dtb b4860qds-usdpaa.dtb \
     b4860qds-usdpaa-shared-interfaces.dtb \
 "
diff --git a/conf/machine/b4860qds.conf b/conf/machine/b4860qds.conf
index 970c11d..e95c589 100644
--- a/conf/machine/b4860qds.conf
+++ b/conf/machine/b4860qds.conf
@@ -17,6 +17,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "b4860qds"
+
 KERNEL_DEVICETREE ?= "b4860qds.dtb b4860qds-usdpaa.dtb \
     b4860qds-usdpaa-shared-interfaces.dtb \
 "
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 03/15] p2041rdb: define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 02/15] b4860qds(-64b): define HV_CFG_M in machine conf Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 04/15] p3041ds: " Zhenhua Luo
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/p2041rdb.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/conf/machine/p2041rdb.conf b/conf/machine/p2041rdb.conf
index ad40e67..981d20b 100644
--- a/conf/machine/p2041rdb.conf
+++ b/conf/machine/p2041rdb.conf
@@ -20,6 +20,8 @@ UBOOT_SOURCE_NAND = "u-boot.pbl"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot.pbl"
 
+HV_CFG_M = "p2041rdb"
+
 KERNEL_DEVICETREE ?= "p2041rdb.dtb p2041rdb-usdpaa.dtb \
     p2041rdb-usdpaa-shared-interfaces.dtb \
 "
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 04/15] p3041ds: define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 02/15] b4860qds(-64b): define HV_CFG_M in machine conf Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 03/15] p2041rdb: " Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 05/15] p4080ds: " Zhenhua Luo
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/p3041ds.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/conf/machine/p3041ds.conf b/conf/machine/p3041ds.conf
index 4f94219..fb1c0a4 100644
--- a/conf/machine/p3041ds.conf
+++ b/conf/machine/p3041ds.conf
@@ -20,6 +20,8 @@ UBOOT_SOURCE_NAND = "u-boot.pbl"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot.pbl"
 
+HV_CFG_M = "p3041ds"
+
 KERNEL_DEVICETREE ?= "p3041ds.dtb p3041ds-usdpaa.dtb \
     p3041ds-usdpaa-shared-interfaces.dtb \
 "
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 05/15] p4080ds: define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
                   ` (2 preceding siblings ...)
  2015-09-02  9:10 ` [PATCH 04/15] p3041ds: " Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 06/15] p5020ds(-64b): " Zhenhua Luo
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/p4080ds.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/conf/machine/p4080ds.conf b/conf/machine/p4080ds.conf
index 36f3d94..270c4ab 100644
--- a/conf/machine/p4080ds.conf
+++ b/conf/machine/p4080ds.conf
@@ -19,6 +19,8 @@ UBOOT_SOURCE_NAND = "u-boot.pbl"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot.pbl"
 
+HV_CFG_M = "p4080ds"
+
 KERNEL_DEVICETREE ?= "p4080ds.dtb p4080ds-usdpaa.dtb \
     p4080ds-usdpaa-shared-interfaces.dtb \
 "
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 06/15] p5020ds(-64b): define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
                   ` (3 preceding siblings ...)
  2015-09-02  9:10 ` [PATCH 05/15] p4080ds: " Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 07/15] p5040ds(-64b): " Zhenhua Luo
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/p5020ds-64b.conf | 2 ++
 conf/machine/p5020ds.conf     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/conf/machine/p5020ds-64b.conf b/conf/machine/p5020ds-64b.conf
index 5bba3fb..590582c 100644
--- a/conf/machine/p5020ds-64b.conf
+++ b/conf/machine/p5020ds-64b.conf
@@ -20,6 +20,8 @@ UBOOT_SOURCE_NAND = "u-boot.pbl"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot.pbl"
 
+HV_CFG_M = "p5020ds"
+
 KERNEL_DEVICETREE ?= "p5020ds.dtb p5020ds-usdpaa.dtb \
     p5020ds-usdpaa-shared-interfaces.dtb \
 "
diff --git a/conf/machine/p5020ds.conf b/conf/machine/p5020ds.conf
index 2549504..47bdd92 100644
--- a/conf/machine/p5020ds.conf
+++ b/conf/machine/p5020ds.conf
@@ -20,6 +20,8 @@ UBOOT_SOURCE_NAND = "u-boot.pbl"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot.pbl"
 
+HV_CFG_M = "p5020ds"
+
 KERNEL_DEVICETREE ?= "p5020ds.dtb p5020ds-usdpaa.dtb \
     p5020ds-usdpaa-shared-interfaces.dtb \
 "
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 07/15] p5040ds(-64b): define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
                   ` (4 preceding siblings ...)
  2015-09-02  9:10 ` [PATCH 06/15] p5020ds(-64b): " Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 08/15] t1024rdb(-64b): " Zhenhua Luo
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/p5040ds-64b.conf | 2 ++
 conf/machine/p5040ds.conf     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/conf/machine/p5040ds-64b.conf b/conf/machine/p5040ds-64b.conf
index 3b42f84..e9468b8 100644
--- a/conf/machine/p5040ds-64b.conf
+++ b/conf/machine/p5040ds-64b.conf
@@ -20,6 +20,8 @@ UBOOT_SOURCE_NAND = "u-boot.pbl"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot.pbl"
 
+HV_CFG_M = "p5040ds"
+
 KERNEL_DEVICETREE ?= "p5040ds.dtb p5040ds-usdpaa.dtb \
     p5040ds-usdpaa-shared-interfaces.dtb \
 "
diff --git a/conf/machine/p5040ds.conf b/conf/machine/p5040ds.conf
index a1aac0d..58c85fa 100644
--- a/conf/machine/p5040ds.conf
+++ b/conf/machine/p5040ds.conf
@@ -20,6 +20,8 @@ UBOOT_SOURCE_NAND = "u-boot.pbl"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot.pbl"
 
+HV_CFG_M = "p5040ds"
+
 KERNEL_DEVICETREE ?= "p5040ds.dtb p5040ds-usdpaa.dtb \
     p5040ds-usdpaa-shared-interfaces.dtb \
 "
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 08/15] t1024rdb(-64b): define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
                   ` (5 preceding siblings ...)
  2015-09-02  9:10 ` [PATCH 07/15] p5040ds(-64b): " Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 09/15] t1040d4rdb(-64b): " Zhenhua Luo
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/t1024rdb-64b.conf | 2 ++
 conf/machine/t1024rdb.conf     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/conf/machine/t1024rdb-64b.conf b/conf/machine/t1024rdb-64b.conf
index ea313fe..e69fcd2 100644
--- a/conf/machine/t1024rdb-64b.conf
+++ b/conf/machine/t1024rdb-64b.conf
@@ -20,6 +20,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t1024rdb"
+
 KERNEL_DEVICETREE ?= "t1024rdb.dtb t1024rdb-usdpaa.dtb t1024rdb-usdpaa-capwap.dtb"
 KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet64_fmanv3l_smp_defconfig"
 
diff --git a/conf/machine/t1024rdb.conf b/conf/machine/t1024rdb.conf
index 0fe762d..22c9436 100644
--- a/conf/machine/t1024rdb.conf
+++ b/conf/machine/t1024rdb.conf
@@ -20,6 +20,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t1024rdb"
+
 KERNEL_DEVICETREE ?= "t1024rdb.dtb t1024rdb-usdpaa.dtb t1024rdb-usdpaa-capwap.dtb"
 KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_fmanv3l_smp_defconfig"
 
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 09/15] t1040d4rdb(-64b): define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
                   ` (6 preceding siblings ...)
  2015-09-02  9:10 ` [PATCH 08/15] t1024rdb(-64b): " Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 10/15] t1042d4rdb(-64b): " Zhenhua Luo
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/t1040d4rdb-64b.conf | 2 ++
 conf/machine/t1040d4rdb.conf     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/conf/machine/t1040d4rdb-64b.conf b/conf/machine/t1040d4rdb-64b.conf
index 790dd30..9ce616d 100644
--- a/conf/machine/t1040d4rdb-64b.conf
+++ b/conf/machine/t1040d4rdb-64b.conf
@@ -20,6 +20,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t1040rdb"
+
 KERNEL_DEVICETREE ?= "t1040d4rdb.dtb t1040d4rdb-usdpaa-lag.dtb"
 KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet64_fmanv3l_smp_defconfig"
 
diff --git a/conf/machine/t1040d4rdb.conf b/conf/machine/t1040d4rdb.conf
index abdbe6e..d4b4aef 100644
--- a/conf/machine/t1040d4rdb.conf
+++ b/conf/machine/t1040d4rdb.conf
@@ -20,6 +20,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t1040rdb"
+
 KERNEL_DEVICETREE ?= "t1040d4rdb.dtb t1040d4rdb-usdpaa-lag.dtb"
 KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_fmanv3l_smp_defconfig"
 
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 10/15] t1042d4rdb(-64b): define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
                   ` (7 preceding siblings ...)
  2015-09-02  9:10 ` [PATCH 09/15] t1040d4rdb(-64b): " Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 11/15] t2080qds(-64b): " Zhenhua Luo
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/t1042d4rdb-64b.conf | 2 ++
 conf/machine/t1042d4rdb.conf     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/conf/machine/t1042d4rdb-64b.conf b/conf/machine/t1042d4rdb-64b.conf
index 6b8642c..25b7eac 100644
--- a/conf/machine/t1042d4rdb-64b.conf
+++ b/conf/machine/t1042d4rdb-64b.conf
@@ -20,6 +20,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t1040rdb"
+
 KERNEL_DEVICETREE ?= "t1042d4rdb.dtb"
 KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet64_fmanv3l_smp_defconfig"
 
diff --git a/conf/machine/t1042d4rdb.conf b/conf/machine/t1042d4rdb.conf
index 11b5ebf..3d6d2c8 100644
--- a/conf/machine/t1042d4rdb.conf
+++ b/conf/machine/t1042d4rdb.conf
@@ -20,6 +20,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t1040rdb"
+
 KERNEL_DEVICETREE ?= "t1042d4rdb.dtb"
 KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_fmanv3l_smp_defconfig"
 
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 11/15] t2080qds(-64b): define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
                   ` (8 preceding siblings ...)
  2015-09-02  9:10 ` [PATCH 10/15] t1042d4rdb(-64b): " Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 12/15] t2080rdb(-64b): " Zhenhua Luo
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/t2080qds-64b.conf | 2 ++
 conf/machine/t2080qds.conf     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/conf/machine/t2080qds-64b.conf b/conf/machine/t2080qds-64b.conf
index eea51f5..5bea7d8 100644
--- a/conf/machine/t2080qds-64b.conf
+++ b/conf/machine/t2080qds-64b.conf
@@ -21,6 +21,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t2080qds"
+
 KERNEL_DEVICETREE ?= "t2080qds.dtb t2080qds-usdpaa.dtb \
     t2080qds-usdpaa-shared-interfaces.dtb \
 "
diff --git a/conf/machine/t2080qds.conf b/conf/machine/t2080qds.conf
index 68454bf..42b095f 100644
--- a/conf/machine/t2080qds.conf
+++ b/conf/machine/t2080qds.conf
@@ -21,6 +21,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t2080qds"
+
 KERNEL_DEVICETREE ?= "t2080qds.dtb t2080qds-usdpaa.dtb \
     t2080qds-usdpaa-shared-interfaces.dtb \
 "
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 12/15] t2080rdb(-64b): define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
                   ` (9 preceding siblings ...)
  2015-09-02  9:10 ` [PATCH 11/15] t2080qds(-64b): " Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 13/15] t4240qds(-64b): " Zhenhua Luo
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/t2080rdb-64b.conf | 2 ++
 conf/machine/t2080rdb.conf     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/conf/machine/t2080rdb-64b.conf b/conf/machine/t2080rdb-64b.conf
index de5e18e..5ad0535 100644
--- a/conf/machine/t2080rdb-64b.conf
+++ b/conf/machine/t2080rdb-64b.conf
@@ -21,6 +21,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t2080rdb"
+
 KERNEL_DEVICETREE ?= "t2080rdb.dtb t2080rdb-usdpaa.dtb \
     t2080rdb-usdpaa-shared-interfaces.dtb \
 "
diff --git a/conf/machine/t2080rdb.conf b/conf/machine/t2080rdb.conf
index 82a4ec3..405d096 100644
--- a/conf/machine/t2080rdb.conf
+++ b/conf/machine/t2080rdb.conf
@@ -21,6 +21,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t2080rdb"
+
 KERNEL_DEVICETREE ?= "t2080rdb.dtb t2080rdb-usdpaa.dtb \
     t2080rdb-usdpaa-shared-interfaces.dtb \
 "
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 13/15] t4240qds(-64b): define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
                   ` (10 preceding siblings ...)
  2015-09-02  9:10 ` [PATCH 12/15] t2080rdb(-64b): " Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 14/15] t4240rdb(-64b): " Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 15/15] hv-cfg: use MACHINE specific variable Zhenhua Luo
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/t4240qds-64b.conf | 2 ++
 conf/machine/t4240qds.conf     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/conf/machine/t4240qds-64b.conf b/conf/machine/t4240qds-64b.conf
index 3c3dfb7..93c28c4 100644
--- a/conf/machine/t4240qds-64b.conf
+++ b/conf/machine/t4240qds-64b.conf
@@ -17,6 +17,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t4240qds"
+
 KERNEL_DEVICETREE ?= "t4240qds.dtb t4240qds-usdpaa.dtb \
     t4240qds-usdpaa-shared-interfaces.dtb \
 "
diff --git a/conf/machine/t4240qds.conf b/conf/machine/t4240qds.conf
index 2bab3f1..13e9576 100644
--- a/conf/machine/t4240qds.conf
+++ b/conf/machine/t4240qds.conf
@@ -17,6 +17,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t4240qds"
+
 KERNEL_DEVICETREE ?= "t4240qds.dtb t4240qds-usdpaa.dtb \
     t4240qds-usdpaa-shared-interfaces.dtb \
 "
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 14/15] t4240rdb(-64b): define HV_CFG_M in machine conf
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
                   ` (11 preceding siblings ...)
  2015-09-02  9:10 ` [PATCH 13/15] t4240qds(-64b): " Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  2015-09-02  9:10 ` [PATCH 15/15] hv-cfg: use MACHINE specific variable Zhenhua Luo
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

HV_CFG_M defines the path of hv-cfg devicetree binary.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 conf/machine/t4240rdb-64b.conf | 2 ++
 conf/machine/t4240rdb.conf     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/conf/machine/t4240rdb-64b.conf b/conf/machine/t4240rdb-64b.conf
index c85e295..a88ee5d 100644
--- a/conf/machine/t4240rdb-64b.conf
+++ b/conf/machine/t4240rdb-64b.conf
@@ -16,6 +16,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t4240rdb"
+
 KERNEL_DEVICETREE ?= "t4240rdb.dtb t4240rdb-usdpaa.dtb \
     t4240rdb-usdpaa-shared-interfaces.dtb \
 "
diff --git a/conf/machine/t4240rdb.conf b/conf/machine/t4240rdb.conf
index 2af9395..1f014f4 100644
--- a/conf/machine/t4240rdb.conf
+++ b/conf/machine/t4240rdb.conf
@@ -16,6 +16,8 @@ UBOOT_SOURCE_NAND = "u-boot-with-spl-pbl.bin"
 UBOOT_SOURCE_SPI = "u-boot.pbl"
 UBOOT_SOURCE_SD = "u-boot-with-spl-pbl.bin"
 
+HV_CFG_M = "t4240rdb"
+
 KERNEL_DEVICETREE ?= "t4240rdb.dtb t4240rdb-usdpaa.dtb \
     t4240rdb-usdpaa-shared-interfaces.dtb \
 "
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 15/15] hv-cfg: use MACHINE specific variable
  2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
                   ` (12 preceding siblings ...)
  2015-09-02  9:10 ` [PATCH 14/15] t4240rdb(-64b): " Zhenhua Luo
@ 2015-09-02  9:10 ` Zhenhua Luo
  13 siblings, 0 replies; 15+ messages in thread
From: Zhenhua Luo @ 2015-09-02  9:10 UTC (permalink / raw)
  To: meta-freescale

* Use HV_CFG_M in hv-cfg bb file

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 recipes-virtualization/hv-cfg/hv-cfg_git.bb | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/recipes-virtualization/hv-cfg/hv-cfg_git.bb b/recipes-virtualization/hv-cfg/hv-cfg_git.bb
index e4f18e0..0da5a40 100644
--- a/recipes-virtualization/hv-cfg/hv-cfg_git.bb
+++ b/recipes-virtualization/hv-cfg/hv-cfg_git.bb
@@ -23,24 +23,22 @@ SRCREV = "b9287b07390d17bfba936a806a72b91b89507c22"
 
 S = "${WORKDIR}/git"
 
+python () {
+    if not d.getVar("HV_CFG_M", True):
+        raise bb.parse.SkipPackage("HV_CFG_M is not defined, please \
+check ${MACHINE}.conf file.")
+}
+
 do_install () {
 	make install
 
-	M=`echo ${MACHINE} | sed s/-64b//g`
-	if [ "t1042d4rdb" = "${M}" ] || [ "t1040d4rdb" = "${M}" ];then
-		M=t1040rdb
-	fi
 	install -d ${D}/boot/hv-cfg
-	cp -r ${S}/${M}/${M}/* ${D}/boot/hv-cfg
+	cp -r ${S}/${HV_CFG_M}/${HV_CFG_M}/* ${D}/boot/hv-cfg
 }
 
 do_deploy () {
-	M=`echo ${MACHINE} | sed s/-64b//g`
-	if [ "t1042d4rdb" = "${M}" ] || [ "t1040d4rdb" = "${M}" ];then
-		M=t1040rdb
-	fi
 	install -d ${DEPLOYDIR}/hv-cfg
-	cp -r ${S}/${M}/${M}/* ${DEPLOYDIR}/hv-cfg
+	cp -r ${S}/${HV_CFG_M}/${HV_CFG_M}/* ${DEPLOYDIR}/hv-cfg
 }
 addtask deploy after do_install
 
-- 
2.4.3



^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-09-02  9:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-02  9:10 [PATCH 01/15] ipc-ust: move SOC specific variables to qoriq-base.inc Zhenhua Luo
2015-09-02  9:10 ` [PATCH 02/15] b4860qds(-64b): define HV_CFG_M in machine conf Zhenhua Luo
2015-09-02  9:10 ` [PATCH 03/15] p2041rdb: " Zhenhua Luo
2015-09-02  9:10 ` [PATCH 04/15] p3041ds: " Zhenhua Luo
2015-09-02  9:10 ` [PATCH 05/15] p4080ds: " Zhenhua Luo
2015-09-02  9:10 ` [PATCH 06/15] p5020ds(-64b): " Zhenhua Luo
2015-09-02  9:10 ` [PATCH 07/15] p5040ds(-64b): " Zhenhua Luo
2015-09-02  9:10 ` [PATCH 08/15] t1024rdb(-64b): " Zhenhua Luo
2015-09-02  9:10 ` [PATCH 09/15] t1040d4rdb(-64b): " Zhenhua Luo
2015-09-02  9:10 ` [PATCH 10/15] t1042d4rdb(-64b): " Zhenhua Luo
2015-09-02  9:10 ` [PATCH 11/15] t2080qds(-64b): " Zhenhua Luo
2015-09-02  9:10 ` [PATCH 12/15] t2080rdb(-64b): " Zhenhua Luo
2015-09-02  9:10 ` [PATCH 13/15] t4240qds(-64b): " Zhenhua Luo
2015-09-02  9:10 ` [PATCH 14/15] t4240rdb(-64b): " Zhenhua Luo
2015-09-02  9:10 ` [PATCH 15/15] hv-cfg: use MACHINE specific variable Zhenhua Luo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.