-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile
36 lines (26 loc) · 1.1 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
include ../../../src/make-helper-functions.mk
.SECONDEXPANSION:
UMAKE=env -u MAKEFLAGS make
BOOTLOADER_COMPONENTS += bin/bl31.bin
all: bin/u-boot.bin
@true
repo: \
$$(call repodir,arm-trusted-firmware) \
$$(call repodir,uboot)
bin/u-boot.bin: $$(call repodir,uboot) bin/bl31.elf | bin/.dir
with-repo.sh uboot bash -ex -c '\
cp bin/bl31.elf "$$repodir/uboot/"; \
$(UMAKE) -C "$$repodir/uboot/" ARCH=arm CROSS_COMPILE="$$CROSS_COMPILER" "$$UBOOT_CONFIG_TARGET"; \
$(UMAKE) -C "$$repodir/uboot/" ARCH=arm CROSS_COMPILE="$$CROSS_COMPILER"; \
cp "$$repodir/uboot/u-boot-rockchip.bin" "$@"; \
'
bin/bl31.elf: $$(call repodir,arm-trusted-firmware) | bin/.dir
with-repo.sh arm-trusted-firmware bash -ex -c '\
$(UMAKE) -C "$$repodir/arm-trusted-firmware/" PLAT="$$ATF_PLATFORM" CROSS_COMPILE="$$CROSS_COMPILER"; \
cp "$$repodir/arm-trusted-firmware/build/rk3399/release/bl31/bl31.elf" "$@"; \
'
clean-repo: clean-repo//uboot clean-repo//arm-trusted-firmware
update-repo: update-repo//uboot update-repo//arm-trusted-firmware
clean-build-all: clean-build
clean-build:
rm -rf bin repo/uboot/.built