Skip to content

Commit a657a17

Browse files
authored
Merge pull request #621 from sysprog21/fix-dtb
Fix DTB conditional build regression
2 parents caae282 + c610296 commit a657a17

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,14 @@ include mk/artifact.mk
311311
include mk/system.mk
312312
include mk/wasm.mk
313313

314-
all: config $(BUILD_DTB) $(BUILD_DTB2C) $(BIN)
314+
DTB_DEPS :=
315+
ifeq ($(call has, SYSTEM), 1)
316+
ifeq ($(call has, ELF_LOADER), 0)
317+
DTB_DEPS := $(BUILD_DTB) $(BUILD_DTB2C)
318+
endif
319+
endif
320+
321+
all: config $(DTB_DEPS) $(BIN)
315322

316323
OBJS := \
317324
map.o \

0 commit comments

Comments
 (0)