Open Sfinx opened 4 months ago
--dirty
is currently broken for linux
target. I haven't had time to check what is causing it but it is working for U-Boot. There is a workaround in the above link that only reset the kconfig setting.
It do not related to kconfig at all. The problem is that dirty launch several processes which build the same target => race => fail. This patch fix dirty builds for me :
diff --git a/lib/linux.sh b/lib/linux.sh
index 7b2a56f..8b90311 100644
--- a/lib/linux.sh
+++ b/lib/linux.sh
@@ -22,7 +22,7 @@ bsp_prepare() {
bsp_make() {
local kernelversion="$(bsp_version)"
- make -C "$TARGET_DIR" -j$(nproc) \
+ make -C "$TARGET_DIR" -j1 \
ARCH=$BSP_ARCH CROSS_COMPILE=$CROSS_COMPILE HOSTCC=${CROSS_COMPILE}gcc \
KDEB_COMPRESS="xz" KDEB_CHANGELOG_DIST="unstable" DPKG_FLAGS=$BSP_DPKG_FLAGS \
LOCALVERSION=-$PKG_REVISION-$FORK KERNELRELEASE=$kernelversion-$PKG_REVISION-$FORK KDEB_PKGVERSION=$kernelversion-${PKG_REVISION}${SOURCE_GITREV:+-$SOURCE_GITREV} \
This disables parallel building right?
correct. and build always succeed with -j1
./bsp --dirty linux rk356x radxa-cm3-io