diff options
| author | Mark Hatle <mark.hatle@xilinx.com> | 2022-01-25 10:05:28 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@xilinx.com> | 2022-01-25 17:07:32 -0800 |
| commit | 2b42870f93f120299940b7876c24bc5fbcca1a4f (patch) | |
| tree | 3cd9164bf1c79b32c75175f7bdb7ff9021e66694 /meta-xilinx-core | |
| parent | 35464916b749ab6bc37975a824e1db60074f7160 (diff) | |
| download | meta-xilinx-2b42870f93f120299940b7876c24bc5fbcca1a4f.tar.gz | |
embeddedsw: Update to skip checks in eSDK build/install
device-tree, fsbl, plmfw, pmufw, psmfw do basic validation checks, when in
an eSDK skip these checks. Otherwise a partially configured system can't
generate an eSDK for the end user.
Sync Core and Standalone usages to be consistent.
Also cleanup the BB_DONT_CACHE to be consistent in all usages.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-core')
5 files changed, 13 insertions, 7 deletions
diff --git a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb index 9bc81c41..ddae03f5 100644 --- a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb +++ b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb | |||
| @@ -62,13 +62,15 @@ devicetree_do_deploy:append() { | |||
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | def check_devicetree_variables(d): | 64 | def check_devicetree_variables(d): |
| 65 | # Don't cache this, as the items on disk can change! | ||
| 66 | d.setVar('BB_DONT_CACHE', '1') | ||
| 67 | |||
| 65 | if not d.getVar('CONFIG_DTFILE'): | 68 | if not d.getVar('CONFIG_DTFILE'): |
| 66 | d.setVar('BB_DONT_CACHE', '1') | ||
| 67 | raise bb.parse.SkipRecipe("CONFIG_DTFILE or SYSTEM_DTFILE is not defined.") | 69 | raise bb.parse.SkipRecipe("CONFIG_DTFILE or SYSTEM_DTFILE is not defined.") |
| 68 | else: | 70 | else: |
| 69 | if not os.path.exists(d.getVar('CONFIG_DTFILE')): | 71 | if not os.path.exists(d.getVar('CONFIG_DTFILE')): |
| 70 | d.setVar('BB_DONT_CACHE', '1') | 72 | if not d.getVar('WITHIN_EXT_SDK'): |
| 71 | raise bb.parse.SkipRecipe("The device tree %s is not available." % d.getVar('CONFIG_DTFILE')) | 73 | raise bb.parse.SkipRecipe("The device tree %s is not available." % d.getVar('CONFIG_DTFILE')) |
| 72 | else: | 74 | else: |
| 73 | d.appendVar('SRC_URI', ' file://${CONFIG_DTFILE}') | 75 | d.appendVar('SRC_URI', ' file://${CONFIG_DTFILE}') |
| 74 | d.setVarFlag('do_install', 'file-checksums', '${CONFIG_DTFILE}:True') | 76 | d.setVarFlag('do_install', 'file-checksums', '${CONFIG_DTFILE}:True') |
diff --git a/meta-xilinx-core/recipes-bsp/embeddedsw/fsbl.bb b/meta-xilinx-core/recipes-bsp/embeddedsw/fsbl.bb index f8679f0e..68cfeb22 100644 --- a/meta-xilinx-core/recipes-bsp/embeddedsw/fsbl.bb +++ b/meta-xilinx-core/recipes-bsp/embeddedsw/fsbl.bb | |||
| @@ -66,7 +66,8 @@ def check_fsbl_variables(d): | |||
| 66 | d.setVar('BB_DONT_CACHE', '1') | 66 | d.setVar('BB_DONT_CACHE', '1') |
| 67 | 67 | ||
| 68 | if not os.path.exists(d.getVar('FSBL_FILE') + ".elf"): | 68 | if not os.path.exists(d.getVar('FSBL_FILE') + ".elf"): |
| 69 | raise bb.parse.SkipRecipe("The expect file %s.elf is not available.\nSet FSBL_FILE to the path with a precompiled FSBL binary. See the meta-xilinx-core README for more information." % d.getVar('FSBL_FILE')) | 69 | if not d.getVar('WITHIN_EXT_SDK'): |
| 70 | raise bb.parse.SkipRecipe("The expect file %s.elf is not available.\nSet FSBL_FILE to the path with a precompiled FSBL binary. See the meta-xilinx-core README for more information." % d.getVar('FSBL_FILE')) | ||
| 70 | else: | 71 | else: |
| 71 | # We found the file, so be sure to track it | 72 | # We found the file, so be sure to track it |
| 72 | d.setVar('SRC_URI', 'file://${FSBL_FILE}.elf') | 73 | d.setVar('SRC_URI', 'file://${FSBL_FILE}.elf') |
diff --git a/meta-xilinx-core/recipes-bsp/embeddedsw/plmfw.bb b/meta-xilinx-core/recipes-bsp/embeddedsw/plmfw.bb index 0306ef46..3ab694e6 100644 --- a/meta-xilinx-core/recipes-bsp/embeddedsw/plmfw.bb +++ b/meta-xilinx-core/recipes-bsp/embeddedsw/plmfw.bb | |||
| @@ -75,7 +75,8 @@ def check_plm_vars(d): | |||
| 75 | msg = msg + "The expected file %s.bin is not available. " % d.getVar('PLM_FILE') | 75 | msg = msg + "The expected file %s.bin is not available. " % d.getVar('PLM_FILE') |
| 76 | fail = True | 76 | fail = True |
| 77 | if fail: | 77 | if fail: |
| 78 | raise bb.parse.SkipRecipe("%s\nSee the meta-xilinx-core README." % msg) | 78 | if not d.getVar('WITHIN_EXT_SDK'): |
| 79 | raise bb.parse.SkipRecipe("%s\nSee the meta-xilinx-core README." % msg) | ||
| 79 | else: | 80 | else: |
| 80 | # We found the file, so be sure to track it | 81 | # We found the file, so be sure to track it |
| 81 | d.setVar('SRC_URI', 'file://${PLM_FILE}.elf file://${PLM_FILE}.bin') | 82 | d.setVar('SRC_URI', 'file://${PLM_FILE}.elf file://${PLM_FILE}.bin') |
diff --git a/meta-xilinx-core/recipes-bsp/embeddedsw/pmufw.bb b/meta-xilinx-core/recipes-bsp/embeddedsw/pmufw.bb index b3f9664e..80eade19 100644 --- a/meta-xilinx-core/recipes-bsp/embeddedsw/pmufw.bb +++ b/meta-xilinx-core/recipes-bsp/embeddedsw/pmufw.bb | |||
| @@ -73,7 +73,8 @@ def check_pmu_vars(d): | |||
| 73 | msg = msg + "The expected file %s.bin is not available. " % d.getVar('PMU_FILE') | 73 | msg = msg + "The expected file %s.bin is not available. " % d.getVar('PMU_FILE') |
| 74 | fail = True | 74 | fail = True |
| 75 | if fail: | 75 | if fail: |
| 76 | raise bb.parse.SkipRecipe("%s See the meta-xilinx-core README." % msg) | 76 | if not d.getVar('WITHIN_EXT_SDK'): |
| 77 | raise bb.parse.SkipRecipe("%s See the meta-xilinx-core README." % msg) | ||
| 77 | else: | 78 | else: |
| 78 | # We found the file, so be sure to track it | 79 | # We found the file, so be sure to track it |
| 79 | d.setVar('SRC_URI', 'file://${PMU_FILE}.elf file://${PMU_FILE}.bin') | 80 | d.setVar('SRC_URI', 'file://${PMU_FILE}.elf file://${PMU_FILE}.bin') |
diff --git a/meta-xilinx-core/recipes-bsp/embeddedsw/psmfw.bb b/meta-xilinx-core/recipes-bsp/embeddedsw/psmfw.bb index 46124591..5a7695de 100644 --- a/meta-xilinx-core/recipes-bsp/embeddedsw/psmfw.bb +++ b/meta-xilinx-core/recipes-bsp/embeddedsw/psmfw.bb | |||
| @@ -76,7 +76,8 @@ def check_psm_vars(d): | |||
| 76 | fail = True | 76 | fail = True |
| 77 | 77 | ||
| 78 | if fail: | 78 | if fail: |
| 79 | raise bb.parse.SkipRecipe("%s\nSee the meta-xilinx-core README." % msg) | 79 | if not d.getVar('WITHIN_EXT_SDK'): |
| 80 | raise bb.parse.SkipRecipe("%s\nSee the meta-xilinx-core README." % msg) | ||
| 80 | else: | 81 | else: |
| 81 | # We found the file, so be sure to track it | 82 | # We found the file, so be sure to track it |
| 82 | d.setVar('SRC_URI', 'file://${PSM_FILE}.elf file://${PSM_FILE}.bin') | 83 | d.setVar('SRC_URI', 'file://${PSM_FILE}.elf file://${PSM_FILE}.bin') |
