From: Henning Schild <henning.schild@siemens.com>
To: isar-users@googlegroups.com
Cc: Henning Schild <henning.schild@siemens.com>
Subject: [PATCH] u-boot-custom: Use bitbake variables instead of hardcoded values
Date: Tue, 20 Nov 2018 10:48:22 +0100 [thread overview]
Message-ID: <20181120094822.7819-1-henning.schild@siemens.com> (raw)
Make use of PN and P instead of hardcoding these strings.
Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
meta-isar/recipes-bsp/u-boot/u-boot_2018.09.bb | 2 +-
meta/recipes-bsp/u-boot/files/debian/control | 6 +++---
meta/recipes-bsp/u-boot/u-boot-custom.inc | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/meta-isar/recipes-bsp/u-boot/u-boot_2018.09.bb b/meta-isar/recipes-bsp/u-boot/u-boot_2018.09.bb
index e0f756c..4ac0a5e 100644
--- a/meta-isar/recipes-bsp/u-boot/u-boot_2018.09.bb
+++ b/meta-isar/recipes-bsp/u-boot/u-boot_2018.09.bb
@@ -6,6 +6,6 @@
require recipes-bsp/u-boot/u-boot-custom.inc
SRC_URI += " \
- ftp://ftp.denx.de/pub/u-boot/u-boot-2018.09.tar.bz2 \
+ ftp://ftp.denx.de/pub/${PN}/${P}.tar.bz2 \
"
SRC_URI[sha256sum] = "839bf23cfe8ce613a77e583a60375179d0ad324e92c82fbdd07bebf0fd142268"
diff --git a/meta/recipes-bsp/u-boot/files/debian/control b/meta/recipes-bsp/u-boot/files/debian/control
index 6b4c839..e0ea3eb 100644
--- a/meta/recipes-bsp/u-boot/files/debian/control
+++ b/meta/recipes-bsp/u-boot/files/debian/control
@@ -5,15 +5,15 @@ Standards-Version: 3.9.6
Build-Depends: @BUILD_DEPENDS@
Maintainer: ISAR project <isar-users@googlegroups.com>
-Package: u-boot-@MACHINE@
+Package: @PN@-@MACHINE@
Architecture: @DISTRO_ARCH@
Description: @DESCRIPTION@, bootloader binaries
-Package: u-boot-@MACHINE@-dev
+Package: @PN@-@MACHINE@-dev
Architecture: @DISTRO_ARCH@
Description: @DESCRIPTION@, bootloader libraries
-Package: u-boot-tools
+Package: @PN@-tools
Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: @DESCRIPTION@, companion tools
diff --git a/meta/recipes-bsp/u-boot/u-boot-custom.inc b/meta/recipes-bsp/u-boot/u-boot-custom.inc
index 583cd47..4ec37d0 100644
--- a/meta/recipes-bsp/u-boot/u-boot-custom.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-custom.inc
@@ -9,7 +9,7 @@ FILESPATH =. "${LAYERDIR_core}/recipes-bsp/u-boot/files:"
DESCRIPTION ?= "Custom U-Boot"
-PROVIDES += "u-boot-${MACHINE} u-boot-tools"
+PROVIDES += "${PN}-${MACHINE} ${PN}-${MACHINE}-dev ${PN}-tools"
inherit dpkg
--
2.19.1
next reply other threads:[~2018-11-20 9:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-20 9:48 Henning Schild [this message]
2018-11-23 10:23 ` Maxim Yu. Osipov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181120094822.7819-1-henning.schild@siemens.com \
--to=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox