diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2021-05-11 10:10:05 -0700 |
---|---|---|
committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2021-09-27 21:33:21 -0700 |
commit | 551e1f823a75606bd9312f95a61831d8f25b1fdd (patch) | |
tree | 19174a75ef74c0a8a7eefd810b8fc78bc549b87f | |
parent | 76aeee5fc8c2d2a8136e37aa97776ed79e5ec995 (diff) | |
download | meta-xilinx-551e1f823a75606bd9312f95a61831d8f25b1fdd.tar.gz |
dtb-embeddedsw.inc: Unify the approach to overriding
Add an 'experimental' configuration, and default to this when using
any of the experimental esw based recipes.
The class must be inherited first, and THEN the override processed.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
3 files changed, 15 insertions, 5 deletions
diff --git a/meta-xilinx-standalone-experimental/classes/esw.bbclass b/meta-xilinx-standalone-experimental/classes/esw.bbclass index 42a5980f..a7bc7e2d 100644 --- a/meta-xilinx-standalone-experimental/classes/esw.bbclass +++ b/meta-xilinx-standalone-experimental/classes/esw.bbclass | |||
@@ -1,8 +1,8 @@ | |||
1 | # We should move to an actual SRCREV eventually | ||
2 | include conf/xilinx/esw-srcrev.inc | ||
3 | |||
4 | inherit xlnx-embeddedsw pkgconfig cmake | 1 | inherit xlnx-embeddedsw pkgconfig cmake |
5 | 2 | ||
3 | # Override xlnx-embeddedsw with out version | ||
4 | require conf/dtb-embeddedsw.inc | ||
5 | |||
6 | SRCREV_FORMAT = "src_decouple" | 6 | SRCREV_FORMAT = "src_decouple" |
7 | 7 | ||
8 | S = "${WORKDIR}/git" | 8 | S = "${WORKDIR}/git" |
diff --git a/meta-xilinx-standalone-experimental/conf/dtb-embeddedsw.inc b/meta-xilinx-standalone-experimental/conf/dtb-embeddedsw.inc new file mode 100644 index 00000000..673455d0 --- /dev/null +++ b/meta-xilinx-standalone-experimental/conf/dtb-embeddedsw.inc | |||
@@ -0,0 +1,9 @@ | |||
1 | # The format of this file must be compatible with | ||
2 | # meta-xilinx/meta-xilinx-standalone/classes/xlnx-embeddedsw.bbclass | ||
3 | |||
4 | # Make it clear decoupling is 'experimental' in the version | ||
5 | ESW_VER = "experimental" | ||
6 | |||
7 | REPO = "git://gitenterprise.xilinx.com/decoupling/embeddedsw.git;protocol=https" | ||
8 | |||
9 | ESW_BRANCH[experimental] = "master" | ||
diff --git a/meta-xilinx-standalone-experimental/recipes-libraries/nativesdk-esw-conf_git.bb b/meta-xilinx-standalone-experimental/recipes-libraries/nativesdk-esw-conf_git.bb index 0b1aa111..629b6f73 100644 --- a/meta-xilinx-standalone-experimental/recipes-libraries/nativesdk-esw-conf_git.bb +++ b/meta-xilinx-standalone-experimental/recipes-libraries/nativesdk-esw-conf_git.bb | |||
@@ -1,8 +1,9 @@ | |||
1 | include conf/xilinx/esw-srcrev.inc | ||
2 | |||
3 | # Can't depend on esw since this is needed for setup! | 1 | # Can't depend on esw since this is needed for setup! |
4 | inherit xlnx-embeddedsw nativesdk | 2 | inherit xlnx-embeddedsw nativesdk |
5 | 3 | ||
4 | # We need to override the inherit | ||
5 | require conf/dtb-embeddedsw.inc | ||
6 | |||
6 | S = "${WORKDIR}/git" | 7 | S = "${WORKDIR}/git" |
7 | B = "${WORKDIR}/build" | 8 | B = "${WORKDIR}/build" |
8 | 9 | ||