[meta-freescale] [3rdparty][PATCH 1/4] u-boot-boundary: Create u-boot-boundary-common include file

Fabio Berton fabio.berton at ossystems.com.br
Mon Nov 20 10:58:35 PST 2017


  - Use a common file to make easier update, maintain and create
    others U-Boot recipes like U-Boot fw-utils.
  - Rename recipes to use U-Boot version as recipe PN.
  - Fix U-Boot spelling on description.

Signed-off-by: Fabio Berton <fabio.berton at ossystems.com.br>
---
 ...t-boundary_git.bb => u-boot-boundary-common_2016.03.inc} |  7 +------
 recipes-bsp/u-boot/u-boot-boundary_2016.03.bb               |  6 ++++++
 ...pt-boundary_git.bb => u-boot-script-boundary_2016.03.bb} | 13 ++-----------
 3 files changed, 9 insertions(+), 17 deletions(-)
 rename recipes-bsp/u-boot/{u-boot-boundary_git.bb => u-boot-boundary-common_2016.03.inc} (65%)
 create mode 100644 recipes-bsp/u-boot/u-boot-boundary_2016.03.bb
 rename recipes-bsp/u-boot/{u-boot-script-boundary_git.bb => u-boot-script-boundary_2016.03.bb} (83%)

diff --git a/recipes-bsp/u-boot/u-boot-boundary_git.bb b/recipes-bsp/u-boot/u-boot-boundary-common_2016.03.inc
similarity index 65%
rename from recipes-bsp/u-boot/u-boot-boundary_git.bb
rename to recipes-bsp/u-boot/u-boot-boundary-common_2016.03.inc
index b2cb7d3..cc6b635 100644
--- a/recipes-bsp/u-boot/u-boot-boundary_git.bb
+++ b/recipes-bsp/u-boot/u-boot-boundary-common_2016.03.inc
@@ -1,11 +1,6 @@
-require recipes-bsp/u-boot/u-boot.inc
-
-DESCRIPTION = "u-boot for Boundary Devices boards."
+DESCRIPTION = "U-Boot for Boundary Devices boards"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
-COMPATIBLE_MACHINE = "(imx6qsabrelite|nitrogen6x|nitrogen6sx|nitrogen7)"
-
-PROVIDES += "u-boot"
 
 PV = "v2016.03+git${SRCPV}"
 
diff --git a/recipes-bsp/u-boot/u-boot-boundary_2016.03.bb b/recipes-bsp/u-boot/u-boot-boundary_2016.03.bb
new file mode 100644
index 0000000..03a0a10
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-boundary_2016.03.bb
@@ -0,0 +1,6 @@
+require recipes-bsp/u-boot/u-boot.inc
+require recipes-bsp/u-boot/u-boot-boundary-common_${PV}.inc
+
+PROVIDES += "u-boot"
+
+COMPATIBLE_MACHINE = "(imx6qsabrelite|nitrogen6x|nitrogen6sx|nitrogen7)"
diff --git a/recipes-bsp/u-boot/u-boot-script-boundary_git.bb b/recipes-bsp/u-boot/u-boot-script-boundary_2016.03.bb
similarity index 83%
rename from recipes-bsp/u-boot/u-boot-script-boundary_git.bb
rename to recipes-bsp/u-boot/u-boot-script-boundary_2016.03.bb
index 205ef31..b63548e 100644
--- a/recipes-bsp/u-boot/u-boot-script-boundary_git.bb
+++ b/recipes-bsp/u-boot/u-boot-script-boundary_2016.03.bb
@@ -1,14 +1,6 @@
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
-DEPENDS = "u-boot-mkimage-native"
-
-PV = "v2016.03+git${SRCPV}"
+require recipes-bsp/u-boot/u-boot-boundary-common_${PV}.inc
 
-SRCREV = "568947b9d1dd4e966008fceb4617392a82dc753c"
-SRCBRANCH = "boundary-v2016.03"
-SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git;branch=${SRCBRANCH}"
-
-S = "${WORKDIR}/git"
+DEPENDS = "u-boot-mkimage-native"
 
 inherit deploy
 
@@ -59,5 +51,4 @@ addtask deploy after do_install before do_build
 
 FILES_${PN} += "/"
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
 COMPATIBLE_MACHINE = "(nitrogen6x|nitrogen6x-lite|nitrogen6sx|nitrogen7)"
-- 
2.14.2



More information about the meta-freescale mailing list