-
Notifications
You must be signed in to change notification settings - Fork 99
/
Makefile.package.mk
47 lines (39 loc) · 1.94 KB
/
Makefile.package.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
LATEST_UBOOT_VERSION ?= $(shell scripts/get-package-version linux-mainline-u-boot tag_iid $(UBOOT_VERSION))
LATEST_KERNEL_VERSION ?= $(shell scripts/get-package-version linux-mainline-kernel tag_with_sha $(KERNEL_VERSION))
LATEST_ROOTFS_VERSION ?= $(shell scripts/get-package-version linux-rootfs tag_version $(ROOTFS_VERSION))
LATEST_PACKAGE_VERSION ?= $(shell scripts/get-package-version linux-package tag_iid $(VERSION))
PACKAGES += linux-$(BOARD_TARGET)-$(RELEASE_NAME)-mainline_arm64.deb
generate-latest:
@echo LATEST_UBOOT_VERSION=$(LATEST_UBOOT_VERSION)
@echo LATEST_KERNEL_VERSION=$(LATEST_KERNEL_VERSION)
@echo LATEST_ROOTFS_VERSION=$(LATEST_ROOTFS_VERSION)
@echo LATEST_PACKAGE_VERSION=$(LATEST_PACKAGE_VERSION)
store-latest:
git checkout Makefile.latest.mk
make -s generate-latest | tee Makefile.latest.mk
ifneq (,$(BOARD_TARGET))
ifeq (,$(CI))
.PHONY: linux-$(BOARD_TARGET)-$(RELEASE_NAME)-mainline_arm64.deb
endif
linux-$(BOARD_TARGET)-$(RELEASE_NAME)-mainline_arm64.deb: Makefile.latest.mk
fpm -s empty -t deb -n linux-$(BOARD_TARGET)-$(VERSION)-mainline -v $(RELEASE_NAME) \
-p $@ \
--deb-priority optional --category admin \
--depends "board-package-$(BOARD_TARGET)-$(LATEST_PACKAGE_VERSION)" \
--depends "u-boot-$(BOARD_TARGET)-$(LATEST_UBOOT_VERSION)" \
--depends "linux-image-$(LATEST_KERNEL_VERSION)" \
--depends "linux-headers-$(LATEST_KERNEL_VERSION)" \
--deb-field "Provides: linux-board-mainline-virtual" \
--deb-field "Provides: linux-board-mainline-virtual" \
--deb-field "Replaces: linux-board-mainline-virtual" \
--deb-field "Conflicts: linux-board-virtual" \
--force \
--url https://gitlab.com/ayufan-rock64/linux-build \
--description "Rock64 Linux virtual package: depends on kernel and compatibility package" \
-m "Kamil Trzciński <[email protected]>" \
--license "MIT" \
--vendor "Kamil Trzciński" \
-a arm64
linux-virtual: linux-$(BOARD_TARGET)-$(RELEASE_NAME)-mainline_arm64.deb
all: linux-virtual
endif