ad13ffd54177c3dd1ab98bc0972d4130a24d0384
[openwrt.git] / target / linux / image / aruba / Makefile
1 include $(TOPDIR)/rules.mk
2 include $(INCLUDE_DIR)/image.mk
3
4 LOADADDR = 0x81000000 # RAM start + 16M
5 KERNEL_ENTRY = 0x80100000
6 RAMSIZE = 0x00100000 # 1MB
7
8 LOADER_MAKEOPTS= \
9 KDIR=$(KDIR) \
10 LOADADDR=$(LOADADDR) \
11 KERNEL_ENTRY=$(KERNEL_ENTRY) \
12 RAMSIZE=$(RAMSIZE)
13
14 define Build/Clean
15 $(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) clean
16 endef
17
18 define Image/Prepare
19 cat $(KDIR)/vmlinux | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
20 $(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) clean compile
21 endef
22
23 define Image/BuildKernel
24 ./addVersion -n ArubaOS $(KDIR)/loader.elf $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari version
25 endef
26
27 define Image/Build/jffs2-64k
28 @dd if=$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari of=$(KDIR)/image.tmp bs=655360 conv=sync
29 @cat $(KDIR)/root.$(1) >> $(KDIR)/image.tmp
30 @dd if=$(KDIR)/image.tmp of=$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(patsubst jffs2-%,jffs2,$(1)).bin bs=3604480 conv=sync
31 @rm -f $(KDIR)/image.tmp
32 endef
33
34 define Image/Build
35 $(call Image/Build/$(1),$(1))
36 endef
37
38 $(eval $(call BuildImage))
This page took 0.037654 seconds and 3 git commands to generate.