Skip to content

Commit 9ebec4e

Browse files
committed
Support building Trusty with bear
1 parent a40e72f commit 9ebec4e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ VERBOSE ?= 0
1616

1717
ARCH ?= x86_64
1818

19+
BEAR ?= 0
20+
1921
GREEN := $(shell tput setaf 2)
2022
YELLOW := $(shell tput setaf 3)
2123
NC := $(shell tput sgr0)
@@ -402,6 +404,11 @@ ATF_DIR := $(TRUSTY_OUT)/atf/qemu/debug
402404
ATF_BL1 := $(ATF_DIR)/bl1.bin
403405
ATF_BL33 := $(ATF_DIR)/bl33.bin
404406

407+
BEAR_CMD :=
408+
ifeq ($(BEAR),1)
409+
BEAR_CMD := bear --
410+
endif
411+
405412
.PHONY: trusty-init
406413
trusty-init:
407414
mkdir -p $(TRUSTY_SRC)
@@ -410,7 +417,9 @@ trusty-init:
410417

411418
.PHONY: trusty
412419
trusty $(ATF_BL1): | $(TRUSTY_SRC)
413-
$(TRUSTY_SRC)/trusty/vendor/google/aosp/scripts/build.py --build-root $(TRUSTY_BUILD_ROOT) --skip-tests $(TRUSTY_TARGET)
420+
$(BEAR_CMD) $(TRUSTY_SRC)/trusty/vendor/google/aosp/scripts/build.py \
421+
--build-root $(TRUSTY_BUILD_ROOT) \
422+
--skip-tests $(TRUSTY_TARGET)
414423
$(MAKE) trusty_bl33
415424

416425
.PHONY: trusty_bl33

0 commit comments

Comments
 (0)