diff options
author | Mark Hatle <mark.hatle@amd.com> | 2022-12-07 18:55:01 -0800 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-04-10 09:03:22 -0700 |
commit | 1d8f0c9985be7d5488abb93acaa8ee76d2b04a05 (patch) | |
tree | 029dd78ea34c8c0ee4df8708f18049e6b5d6f7c4 | |
parent | 178f0b31e4898e433c19720e7c2a32ba2a0aacca (diff) | |
download | meta-xilinx-1d8f0c9985be7d5488abb93acaa8ee76d2b04a05.tar.gz |
meta-xilinx-standalone: Sync embeddedsw and git version
Update the integration to match latest changes.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
4 files changed, 10 insertions, 109 deletions
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_git.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_git.bb index 697431ad..0094384a 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_git.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_git.bb | |||
@@ -6,6 +6,7 @@ require fsbl-firmware.inc | |||
6 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw" | 6 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw" |
7 | 7 | ||
8 | SRC_URI += " \ | 8 | SRC_URI += " \ |
9 | file://makefile-skip-copy_bsp.sh.patch \ | ||
9 | file://fsbl-fixups.patch \ | 10 | file://fsbl-fixups.patch \ |
10 | " | 11 | " |
11 | 12 | ||
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_git.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_git.bb index af906e5e..2d06fa6a 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_git.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_git.bb | |||
@@ -7,49 +7,13 @@ FILESPATH .= ":${FILE_DIRNAME}/embeddedsw" | |||
7 | 7 | ||
8 | SRC_URI += " \ | 8 | SRC_URI += " \ |
9 | file://makefile-skip-copy_bsp.sh.patch \ | 9 | file://makefile-skip-copy_bsp.sh.patch \ |
10 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
10 | " | 11 | " |
11 | 12 | ||
12 | do_configure() { | 13 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" |
13 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
14 | # mb-* commands | ||
15 | . ${B}/../misc/copy_bsp.sh | ||
16 | echo "$BSP_SEQUENTIAL_MAKEFILES" > ${B}/seq.mak | ||
17 | } | ||
18 | 14 | ||
19 | do_compile() { | 15 | do_compile() { |
20 | # First process the sequential items | 16 | oe_runmake |
21 | for i in $(cat seq.mak); do | ||
22 | echo Include Seq: $i | ||
23 | if [ ! -d $i ]; then | ||
24 | echo "Skipping...." | ||
25 | continue | ||
26 | fi | ||
27 | oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)} | ||
28 | done | ||
29 | for i in $(cat seq.mak); do | ||
30 | echo Libs Seq: $i | ||
31 | if [ ! -d $i ]; then | ||
32 | echo "Skipping...." | ||
33 | continue | ||
34 | fi | ||
35 | oe_runmake -C $(dirname $i) -s libs ${@bsp_make_vars(d)} | ||
36 | done | ||
37 | |||
38 | # the Makefile in ${B}/../misc/Makefile, does not handle CC, AR, AS, etc | ||
39 | # properly. So do its job manually. Preparing the includes first, then libs. | ||
40 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
41 | echo Include: $i | ||
42 | oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)} | ||
43 | done | ||
44 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
45 | echo Libs: $i | ||
46 | oe_runmake -C $(dirname $i) -s libs ${@bsp_make_vars(d)} | ||
47 | done | ||
48 | |||
49 | # --build-id=none is required due to linker script not defining a location for it. | ||
50 | # Again, recipe-systoot include is necessary | ||
51 | echo Construct: executable | ||
52 | oe_runmake plm.elf ${@bsp_make_vars(d)} CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include" | ||
53 | 17 | ||
54 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | 18 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin |
55 | } | 19 | } |
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_git.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_git.bb index a17aad55..5d806067 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_git.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_git.bb | |||
@@ -7,41 +7,13 @@ FILESPATH .= ":${FILE_DIRNAME}/embeddedsw" | |||
7 | 7 | ||
8 | SRC_URI += " \ | 8 | SRC_URI += " \ |
9 | file://makefile-skip-copy_bsp.sh.patch \ | 9 | file://makefile-skip-copy_bsp.sh.patch \ |
10 | file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \ | ||
10 | " | 11 | " |
11 | 12 | ||
12 | do_configure() { | 13 | EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" |
13 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
14 | # mb-* commands | ||
15 | . ${B}/../misc/copy_bsp.sh | ||
16 | echo "$BSP_SEQUENTIAL_MAKEFILES" > ${B}/seq.mak | ||
17 | } | ||
18 | 14 | ||
19 | do_compile() { | 15 | do_compile() { |
20 | # First process the sequential items | 16 | oe_runmake |
21 | for i in $(cat seq.mak); do | ||
22 | echo Include Seq: $i | ||
23 | oe_runmake -C $(dirname $i) -s include | ||
24 | done | ||
25 | for i in $(cat seq.mak); do | ||
26 | echo Libs Seq: $i | ||
27 | oe_runmake -C $(dirname $i) -s libs | ||
28 | done | ||
29 | |||
30 | # the Makefile in ${B}/../misc/Makefile, does not handle CC, AR, AS, etc | ||
31 | # properly. So do its job manually. Preparing the includes first, then libs. | ||
32 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
33 | echo Include: $i | ||
34 | oe_runmake -C $(dirname $i) -s include | ||
35 | done | ||
36 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
37 | echo Libs: $i | ||
38 | oe_runmake -C $(dirname $i) -s libs | ||
39 | done | ||
40 | |||
41 | # --build-id=none is required due to linker script not defining a location for it. | ||
42 | # Again, recipe-systoot include is necessary | ||
43 | echo Construct: executable | ||
44 | oe_runmake executable.elf CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include" | ||
45 | 17 | ||
46 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | 18 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin |
47 | } | 19 | } |
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_git.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_git.bb index 94a2c22d..d04d9183 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_git.bb +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_git.bb | |||
@@ -7,49 +7,13 @@ FILESPATH .= ":${FILE_DIRNAME}/embeddedsw" | |||
7 | 7 | ||
8 | SRC_URI += " \ | 8 | SRC_URI += " \ |
9 | file://makefile-skip-copy_bsp.sh.patch \ | 9 | file://makefile-skip-copy_bsp.sh.patch \ |
10 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
10 | " | 11 | " |
11 | 12 | ||
12 | do_configure() { | 13 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" |
13 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
14 | # mb-* commands | ||
15 | . ${B}/../misc/copy_bsp.sh | ||
16 | echo "$BSP_SEQUENTIAL_MAKEFILES" > ${B}/seq.mak | ||
17 | } | ||
18 | 14 | ||
19 | do_compile() { | 15 | do_compile() { |
20 | # First process the sequential items | 16 | oe_runmake |
21 | for i in $(cat seq.mak); do | ||
22 | echo Include Seq: $i | ||
23 | if [ ! -d $i ]; then | ||
24 | echo "Skipping...." | ||
25 | continue | ||
26 | fi | ||
27 | oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)} | ||
28 | done | ||
29 | for i in $(cat seq.mak); do | ||
30 | echo Libs Seq: $i | ||
31 | if [ ! -d $i ]; then | ||
32 | echo "Skipping...." | ||
33 | continue | ||
34 | fi | ||
35 | oe_runmake -C $(dirname $i) -s libs ${@bsp_make_vars(d)} | ||
36 | done | ||
37 | |||
38 | # the Makefile in ${B}/../misc/Makefile, does not handle CC, AR, AS, etc | ||
39 | # properly. So do its job manually. Preparing the includes first, then libs. | ||
40 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
41 | echo Include: $i | ||
42 | oe_runmake -C $(dirname $i) -s include ${@bsp_make_vars(d)} | ||
43 | done | ||
44 | for i in $(ls ${BSP_TARGETS_DIR}/*/src/Makefile); do | ||
45 | echo Libs: $i | ||
46 | oe_runmake -C $(dirname $i) -s libs ${@bsp_make_vars(d)} | ||
47 | done | ||
48 | |||
49 | # --build-id=none is required due to linker script not defining a location for it. | ||
50 | # Again, recipe-systoot include is necessary | ||
51 | echo Construct: executable | ||
52 | oe_runmake psmfw.elf ${@bsp_make_vars(d)} CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include" | ||
53 | 17 | ||
54 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | 18 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin |
55 | } | 19 | } |