-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile.extra
More file actions
56 lines (44 loc) · 1.23 KB
/
Copy pathMakefile.extra
File metadata and controls
56 lines (44 loc) · 1.23 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# This file is auto generated by rsdk infra-package-update.
# DO NOT EDIT IT DIRECTLY!
# Custom rules should be placed in .github/local/Makefile.local
UBOOT_FORK ?= boot-rk2601
ARCH ?= arm
CROSS_COMPILE ?= aarch64-linux-gnu-
CUSTOM_ENV_DEFINITIONS ?=
CUSTOM_MAKE_DEFINITIONS ?=
SUPPORT_CLEAN ?= true
UMAKE ?= $(CUSTOM_ENV_DEFINITIONS) $(MAKE) -C "$(SRC-UBOOT)" -j$(shell nproc) \
$(CUSTOM_MAKE_DEFINITIONS) \
ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) \
UBOOTVERSION=$(shell dpkg-parsechangelog -S Version)-$(UBOOT_FORK)
UBOOT_PRODUCTS ?=
#
# Build
#
DIR-OUTPUT := out
SRC-UBOOT := src
$(DIR-OUTPUT):
mkdir -p $@
.PHONY: build
build: $(DIR-OUTPUT) $(SRC-UBOOT) pre_build $(UBOOT_PRODUCTS) post_build
#
# Clean
#
.PHONY: clean_config
clean_config:
rm -f $(SRC-UBOOT)/.config
.PHONY: distclean
distclean: clean
if [ "$(SUPPORT_CLEAN)" = "true" ]; then $(UMAKE) distclean; fi
.PHONY: clean
clean: clean-deb
if [ "$(SUPPORT_CLEAN)" = "true" ]; then $(UMAKE) clean; fi
rm -rf $(DIR-OUTPUT)
.PHONE: clean-build
clean-build:
rm -rf debian/u-boot-*/
.PHONY: clean-deb
clean-deb: clean-build
# This file is auto generated by rsdk infra-package-update.
# DO NOT EDIT IT DIRECTLY!
# Custom rules should be placed in .github/local/Makefile.local