OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2010-2015 OpenWrt.org |
||
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 | NAND_BLOCKSIZE=2048-128k |
||
11 | |||
12 | define Image/BuildKernel |
||
13 | cat $(KDIR)/zImage $(DTS_DIR)/omap2420-n810.dtb > $(BIN_DIR)/$(IMG_PREFIX)-zImage |
||
14 | chmod 0644 $(BIN_DIR)/$(IMG_PREFIX)-zImage |
||
15 | endef |
||
16 | |||
17 | define Image/Build/squashfs |
||
18 | $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-root.$(1)) |
||
19 | endef |
||
20 | |||
21 | define Image/Build |
||
22 | $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-root.$(1) |
||
23 | $(call Image/Build/$(1),$(1)) |
||
24 | endef |
||
25 | |||
26 | |||
27 | $(eval $(call BuildImage)) |