forked from ayufan-rock64/linux-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.system.mk
More file actions
24 lines (20 loc) · 815 Bytes
/
Makefile.system.mk
File metadata and controls
24 lines (20 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PACKAGES := linux-$(BOARD_TARGET)-package-$(RELEASE_NAME)_all.deb \
$(UBOOT_PACKAGE) \
$(KERNEL_PACKAGE) \
$(KERNEL_HEADERS_PACKAGES)
%.tar.xz: %.tar
pxz -f -3 $<
%.img.xz: %.img
pxz -f -3 $<
%-system.img: $(PACKAGES) linux-$(BOARD_TARGET)-$(RELEASE_NAME)_arm64.deb
sudo bash rootfs/build-system-image.sh \
"$$(readlink -f $@)" \
"$$(readlink -f $(subst -system.img,-boot.img,$@))" \
"$(filter $(BUILD_SYSTEMS), $(subst -, ,$@))" \
"$(filter $(BUILD_VARIANTS), $(subst -, ,$@))" \
"$(filter $(BUILD_ARCHS), $(subst -, ,$@))" \
"$(filter $(BUILD_MODELS), $(subst -, ,$@))" \
$^
%.img: %-system.img out/u-boot-$(BOARD_TARGET)/idbloader.img
build/mk-image.sh -c $(BOARD_CHIP) -d out/u-boot-$(BOARD_TARGET) -t system -r "$<" -b "$(subst -system.img,-boot.img,$<)" -o "[email protected]"
mv "[email protected]" "$@"