forked from ayufan-rock64/linux-u-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.mk
28 lines (21 loc) · 852 Bytes
/
dev.mk
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
export RELEASE ?= 1
all:
include dev-ayufan/boards.mk
include dev-ayufan/build.mk
include dev-ayufan/images.mk
include dev-ayufan/package.mk
include dev-ayufan/rockchip.mk
RELEASE_NAME ?= $(shell $(UBOOT_MAKE) -s ubootrelease)
.PHONY: .scmversion
.scmversion:
@echo "-rockchip-ayufan-$(RELEASE)-g$$(git rev-parse --short HEAD)" > .scmversion
version: .scmversion
@echo $(RELEASE_NAME)
$(filter tmp/rkbin/%, $(BL31) $(UBOOT_TPL) $(UBOOT_SPL) $(LOADER_BIN)):
mkdir -p $$(dirname "$@")
curl --fail -L https://github.com/ayufan-rock64/rkbin/raw/master/$(subst tmp/rkbin/,,$@) > $@.tmp
mv $@.tmp $@
deploy: u-boot-package
scp u-boot-rockchip-$(BOARD_TARGET)-$(RELEASE_NAME).deb root@$(TARGET_HOST):
ssh root@$(TARGET_HOST) apt install ./u-boot-rockchip-$(BOARD_TARGET)-$(RELEASE_NAME).deb
ssh root@$(TARGET_HOST) rock64_upgrade_bootloader.sh