-
Notifications
You must be signed in to change notification settings - Fork 2
/
ssd20xd.mk
44 lines (35 loc) · 1.57 KB
/
ssd20xd.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
BUILDROOT_GW30X=$(shell realpath ./buildroot_gw30x)
BUILDROOT_IDOSOM2D01=$(shell realpath buildroot_idosom2d01)
buildroot-gw30x:
$(MAKE) -C $(BUILDROOT_GW30X)
buildroot-idosom2d01:
$(MAKE) -C $(BUILDROOT_IDOSOM2D01)
buildroot-idosom2d01-rescue:
$(MAKE) -C $(BUILDROOT_IDOSOM2D01) buildroot-rescue
buildroot-idosom2d01-rescue-clean:
$(MAKE) -C $(BUILDROOT_IDOSOM2D01) buildroot-rescue-clean
uboot-gw302:
$(MAKE) -C u-boot clean
PATH=$(BUILDROOT)/output/host/bin:$$PATH \
$(MAKE) -C u-boot mstar_infinity2m_gw302_defconfig
PATH=$(BUILDROOT)/output/host/bin:$$PATH \
$(MAKE) -C u-boot CROSS_COMPILE=$(CROSS_COMPILE) -j8
cp u-boot/ipl $(OUTPUTS)/gw302-ipl
cp u-boot/u-boot.img $(OUTPUTS)/gw302-u-boot.img
# This builds kernel image with the DTB appended to the end for the ssd201htv2 with
# vendor u-boot
kernel_ssd201htv2: outputsdir buildroot_m5 linux_internalinitramfs
cat linux/arch/arm/boot/zImage linux/arch/arm/boot/dts/mstar-infinity2m-ssd202d-ssd201htv2.dtb > \
$(OUTPUTS)/$@
# This builds a FIT image with the kernel and the right device trees for ssd20xd devices
kernel_ssd20xd.fit: outputsdir linux
$(BBBUILDROOT)/buildroot/output/host/bin/mkimage -f kernel_ssd20xd.its \
$(OUTPUTS)/dev_$@
chmod go+r $(OUTPUTS)/dev_$@
# This builds kernel image with the DTB appended to the end for the gw302 with
# vendor u-boot
kernel_gw302: outputsdir buildroot_m5 linux_internalinitramfs
cat linux/arch/arm/boot/zImage linux/arch/arm/boot/dts/mstar-infinity2m-ssd202d-gw302.dtb > \
$(OUTPUTS)/$@
buildroot-menuconfig-gw30x:
$(MAKE) -C $(BUILDROOT_GW30X) buildroot-menuconfig