OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2012-2015 OpenWrt.org |
||
3 | # Copyright (C) 2016-2017 LEDE project |
||
4 | # |
||
5 | # This is free software, licensed under the GNU General Public License v2. |
||
6 | # See /LICENSE for more information. |
||
7 | # |
||
8 | include $(TOPDIR)/rules.mk |
||
9 | include $(INCLUDE_DIR)/image.mk |
||
10 | |||
11 | # for arm |
||
12 | KERNEL_LOADADDR := 0x80008000 |
||
13 | |||
14 | # for arm64 |
||
15 | ifeq ($(SUBTARGET),mt7622) |
||
16 | KERNEL_LOADADDR = 0x41080000 |
||
17 | endif |
||
18 | |||
19 | # default all platform image(fit) build |
||
20 | define Device/Default |
||
21 | PROFILES = Default $$(DEVICE_NAME) |
||
22 | KERNEL_NAME := zImage |
||
23 | FILESYSTEMS := squashfs |
||
24 | DEVICE_DTS_DIR := $(DTS_DIR) |
||
25 | IMAGES := sysupgrade.bin |
||
26 | IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata |
||
27 | ifeq ($(SUBTARGET),mt7623) |
||
28 | KERNEL_NAME := zImage |
||
29 | KERNEL := kernel-bin | append-dtb | uImage none |
||
30 | KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none |
||
31 | endif |
||
32 | ifeq ($(SUBTARGET),mt7622) |
||
33 | KERNEL_NAME := Image |
||
34 | KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb |
||
35 | KERNEL_INITRAMFS = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb |
||
36 | endif |
||
37 | endef |
||
38 | |||
39 | ifeq ($(SUBTARGET),mt7622) |
||
40 | include mt7622.mk |
||
41 | endif |
||
42 | |||
43 | ifeq ($(SUBTARGET),mt7623) |
||
44 | include mt7623.mk |
||
45 | endif |
||
46 | |||
47 | define Image/Build |
||
48 | $(call Image/Build/$(1),$(1)) |
||
49 | endef |
||
50 | |||
51 | $(eval $(call BuildImage)) |
||
52 |