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