Skip to content

Commit

Permalink
Support native Arm32 bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Dec 11, 2023
1 parent c694400 commit 95329dd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 9 additions & 5 deletions mk/arm.mk
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
ARM_EXEC = qemu-arm
ARM_EXEC := $(shell which $(ARM_EXEC))
ifndef ARM_EXEC
$(warning "no qemu-arm found. Please check package installation")
ARM_EXEC = echo WARN: unable to run
ifeq ($(HOST_ARCH),armv7l) # detect ARMv7-A only and assume Linux-compatible
ARM_EXEC :=
else
ARM_EXEC = qemu-arm
ARM_EXEC := $(shell which $(ARM_EXEC))
ifndef ARM_EXEC
$(warning "no qemu-arm found. Please check package installation")
ARM_EXEC = echo WARN: unable to run
endif
endif

export ARM_EXEC
Expand Down
2 changes: 2 additions & 0 deletions mk/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ else
PRINTF = env printf
endif

HOST_ARCH = $(shell arch)

# Control the build verbosity
ifeq ("$(VERBOSE)","1")
Q :=
Expand Down

0 comments on commit 95329dd

Please sign in to comment.