Skip to content

Commit bd6e98b

Browse files
committed
pmu-firmware-2022.2: Avoid race induced build failure
Limit number of concurrent jobs to one in order to mitigate the non-propagation of -j1 option from PARALLEL_MAKE directive which helps us to avoid the following kind of build failure: | .../pmu-firmware/2022.2+gitAUTOINC+5330a64c8e-r0/recipe-sysroot-native/usr/bin/microblazeel-xilinx-elf/../../libexec/microblazeel-xilinx-elf/gcc/microblazeel-xilinx-elf/11.3.0/ar: xdppsu_edid.o: No such file or directory | make[3]: *** [Makefile:31: dppsu_libs] Error 1 | make[2]: *** [Makefile:48: psu_pmu_0/libsrc/dppsu/src/make.libs] Error 2 Signed-off-by: Niko Mauno <[email protected]>
1 parent 1579dae commit bd6e98b

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
From 81b137e9b313d828cba8212d17c4d6a3265f565e Mon Sep 17 00:00:00 2001
2+
From: Niko Mauno <[email protected]>
3+
Date: Mon, 24 Apr 2023 05:00:00 +0000
4+
Subject: [PATCH] Avoid race induced build failure
5+
6+
Limit number of concurrent jobs to one in order to mitigate the
7+
non-propagation of -j1 option from PARALLEL_MAKE directive which
8+
helps us to avoid the following kind of build failure:
9+
10+
| .../pmu-firmware/2022.2+gitAUTOINC+5330a64c8e-r0/recipe-sysroot-native/usr/bin/microblazeel-xilinx-elf/../../libexec/microblazeel-xilinx-elf/gcc/microblazeel-xilinx-elf/11.3.0/ar: xdppsu_edid.o: No such file or directory
11+
| make[3]: *** [Makefile:31: dppsu_libs] Error 1
12+
| make[2]: *** [Makefile:48: psu_pmu_0/libsrc/dppsu/src/make.libs] Error 2
13+
14+
Upstream-Status: Pending
15+
16+
Signed-off-by: Niko Mauno <[email protected]>
17+
---
18+
19+
diff --git a/lib/sw_apps/zynqmp_pmufw/misc/Makefile b/lib/sw_apps/zynqmp_pmufw/misc/Makefile
20+
index a773498512..4528600745 100644
21+
--- a/lib/sw_apps/zynqmp_pmufw/misc/Makefile
22+
+++ b/lib/sw_apps/zynqmp_pmufw/misc/Makefile
23+
@@ -17,7 +19,7 @@ endif
24+
25+
all:
26+
$(MAKE) --no-print-directory seq_libs
27+
- $(MAKE) -j --no-print-directory par_libs
28+
+ $(MAKE) -j1 --no-print-directory par_libs
29+
$(MAKE) --no-print-directory archive
30+
@echo 'Finished building libraries'
31+
32+
--
33+
2.20.1

meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.2.bb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ FILESPATH .= ":${FILE_DIRNAME}/embeddedsw"
55
SRC_URI += " \
66
file://${ESW_VER}/makefile-skip-copy_bsp.sh.patch \
77
file://0001-zynqmp_pmufw-Fixup-core-makefiles.patch \
8+
file://0002-Avoid-race-induced-build-failure.patch \
89
"
910

1011
EXTRA_COMPILER_FLAGS = "-ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects"

0 commit comments

Comments
 (0)