-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (34 loc) · 1.16 KB
/
Copy pathMakefile
File metadata and controls
45 lines (34 loc) · 1.16 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
BITSTREAM ?= images/linux/design_1_wrapper.bit
BOOT_BIN = images/linux/BOOT.BIN
QSIM ?= $(QSIM_PREFIX)/qsim-fastforwarder
QSIM_MEM_SIZE = 4096
QSIM_NUM_CPUS = 4
QSIM_STATE_FILE = "xilinx_zcu102"
QSIM_DT = "a"
QSIM_PATH = `pwd`
build: fix-tmp-dir-location
petalinux-build
config: fix-tmp-dir-location
petalinux-config
config-kernel: fix-tmp-dir-location
petalinux-config -c kernel
config-rootfs: fix-tmp-dir-location
petalinux-config -c rootfs
package-boot:
petalinux-package --boot --force --fpga $(BITSTREAM) --u-boot --output $(BOOT_BIN)
tar -czf images/linux/img.tgz images/linux/BOOT.BIN images/linux/image.ub
distclean: fix-tmp-dir-location
petalinux-build -x distclean
rm -rf components/plnx_workspace
mrproper: fix-tmp-dir-location
petalinux-build -x mrproper
rm -rf components/plnx_workspace
rm -rf pre-built
rm -rf *.bsp
fix-tmp-dir-location:
sed --in-place --expression "s|CONFIG_TMP_DIR_LOCATION=.*|CONFIG_TMP_DIR_LOCATION=\"$(PWD)/build/tmp\"|" project-spec/configs/config
qsim-boot:
$(QSIM) $(QSIM_PATH) $(QSIM_NUM_CPUS) $(QSIM_MEM_SIZE) $(QSIM_STATE_FILE) $(QSIM_DT)
qsim-test:
$(QSIM) ./ $(QSIM_NUM_CPUS) $(QSIM_MEM_SIZE)
.PHONY: distclean mrproper