forked from ayufan-rock64/linux-build
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (39 loc) · 1.19 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
37
38
39
40
41
42
43
44
45
46
47
export RELEASE_NAME ?= 0.1~dev
export RELEASE ?= 1
export BOOT_TOOLS_BRANCH ?= master
export KERNEL_DIR ?= kernel
export UBOOT_DIR ?= u-boot
BUILD_SYSTEMS := bionic xenial jessie stretch
BUILD_VARIANTS := minimal mate lxde i3 openmediavault containers
BUILD_ARCHS := armhf arm64
BUILD_MODELS := rock64 rockpro64
KERNEL_EXTRAVERSION ?= -rockchip-ayufan-$(RELEASE)
KERNEL_DEFCONFIG ?= rockchip_linux_defconfig
BOARD_TARGET ?= rock64
ifeq (rock64,$(BOARD_TARGET))
ATF_PLAT ?= rk322xh
UBOOT_DEFCONFIG ?= rock64-rk3328_defconfig
BL31 ?= rkbin/rk33/rk3328_bl31_v1.39.bin
DDR ?= rkbin/rk33/rk3328_ddr_786MHz_v1.12.bin
BOARD_CHIP ?= rk3328
else ifeq (rockpro64,$(BOARD_TARGET))
ATF_PLAT ?= rk3399
UBOOT_DEFCONFIG ?= rockpro64-rk3399_defconfig
BL31 ?= rkbin/rk33/rk3399_bl31_v1.00.elf
DDR ?= rkbin/rk33/rk3399_ddr_800MHz_v1.08.bin
BOARD_CHIP ?= rk3399
USE_UBOOT_SPL ?= yes
else
$(error Unsupported BOARD_TARGET)
endif
REMOTE_HOST ?= rock64.home
IMAGE_SUFFIX := $(RELEASE_NAME)-$(RELEASE)
all: linux-rock64
include Makefile.atf.mk
include Makefile.uboot.mk
include Makefile.package.mk
include Makefile.kernel.mk
include Makefile.system.mk
include Makefile.variants.mk
include Makefile.loader.mk
include Makefile.dev.mk