-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 1.05 KB
/
Makefile
File metadata and controls
29 lines (24 loc) · 1.05 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
XLEN ?= 64
BOARD ?= "genesys2"
OUTPUT ?= $(PWD)/install$(XLEN)_$(BOARD)
buildroot_defconfig_path = ../configs/$(BOARD)/buildroot$(XLEN)_defconfig
buildroot_external_tree_path := ../br2-ext-tree
all:
mkdir -p $(OUTPUT)
$(MAKE) -C buildroot BR2_EXTERNAL="$(buildroot_external_tree_path)" BR2_DEFCONFIG=$(buildroot_defconfig_path) defconfig
$(MAKE) -C buildroot BINARIES_DIR=$(OUTPUT)
clean:
rm -f $(OUTPUT)/boot.vfat $(OUTPUT)/fitImage.itb \
$(OUTPUT)/fw_payload.bin $(OUTPUT)/fw_payload.elf \
$(OUTPUT)/Image.gz $(OUTPUT)/rootfs.cpio $(OUTPUT)/rootfs.cpio.gz \
$(OUTPUT)/sdcard.img \
$(OUTPUT)/u-boot.bin $(OUTPUT)/u-boot.dtb \
fitImage.its
$(MAKE) -C buildroot clean
updatedefconfigs:
$(MAKE) -C buildroot BR2_EXTERNAL="$(buildroot_external_tree_path)" BR2_DEFCONFIG=$(buildroot_defconfig_path) defconfig
$(MAKE) -C buildroot BR2_DEFCONFIG=$(buildroot_defconfig_path) savedefconfig
$(MAKE) -C buildroot uboot-update-defconfig
$(MAKE) -C buildroot linux-configure
$(MAKE) -C buildroot linux-update-defconfig
.PHONY: all clean updatedefconfigs