OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | # |
2 | # Copyright (C) 2016-2017 Yousong Zhou <yszhou4tech@gmail.com> |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | include $(TOPDIR)/rules.mk |
||
8 | include $(INCLUDE_DIR)/image.mk |
||
9 | |||
10 | define Image/BuildKernel |
||
11 | $(foreach k,$(filter zImage Image,$(KERNELNAME)), \ |
||
12 | cp $(KDIR)/$(KERNELNAME) $(BIN_DIR)/$(IMG_PREFIX)-$(k) \ |
||
13 | ) |
||
14 | endef |
||
15 | |||
16 | define Image/Build/Initramfs |
||
17 | $(foreach k,$(filter zImage Image,$(KERNELNAME)), \ |
||
18 | cp $(KDIR)/$(k)-initramfs $(BIN_DIR)/$(IMG_PREFIX)-$(k)-initramfs \ |
||
19 | ) |
||
20 | endef |
||
21 | |||
22 | define Image/Build |
||
23 | $(call Image/Build/$(1)) |
||
24 | dd if=$(KDIR)/root.$(1) bs=128k conv=sync | \ |
||
25 | gzip -9n >$(BIN_DIR)/$(IMG_PREFIX)-root.$(1).gz |
||
26 | endef |
||
27 | |||
28 | $(eval $(call BuildImage)) |