Make rdc boot a little further, still broken though, resync kernel config
[openwrt.git] / target / linux / adm5120-2.6 / image / lzma-loader / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 4439 2006-08-04 17:14:36Z nbd $
8
9 include $(TOPDIR)/rules.mk
10
11 LOADER := adm5120
12 LOADER_NAME := loader-$(LOADER)
13 LOADER_DATA :=
14
15 LOADER_BIN := $(KDIR)/$(LOADER_NAME).bin
16 LOADER_GZ := $(KDIR)/$(LOADER_NAME).gz
17 LOADER_ELF := $(KDIR)/$(LOADER_NAME).elf
18
19 LZMA_STARTUP_ORG:= 0
20 LZMA_TEXT_START := 0x80300000
21
22 PKG_NAME := lzma-loader
23 PKG_BUILD_DIR := $(KDIR)/$(PKG_NAME)
24
25 .PHONY : loader-compile
26
27 $(PKG_BUILD_DIR)/.prepared:
28 mkdir $(PKG_BUILD_DIR)
29 $(CP) ./src/* $(PKG_BUILD_DIR)/
30 touch $@
31
32 loader-compile: $(PKG_BUILD_DIR)/.prepared
33 $(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE="$(TARGET_CROSS)" \
34 LZMA_STARTUP_ORG=$(LZMA_STARTUP_ORG) \
35 LZMA_TEXT_START=$(LZMA_TEXT_START) \
36 LOADER_DATA=$(LOADER_DATA) \
37 clean all
38
39 $(LOADER_GZ): $(PKG_BUILD_DIR)/loader.bin
40 gzip -nc9 $< > $@
41
42 $(LOADER_ELF) : $(PKG_BUILD_DIR)/loader.elf
43 $(CP) $< $@
44
45 $(LOADER_BIN) : $(PKG_BUILD_DIR)/loader.bin
46 $(CP) $< $@
47
48 download:
49 prepare: $(PKG_BUILD_DIR)/.prepared
50 compile: loader-compile $(LOADER_BIN) $(LOADER_GZ) $(LOADER_ELF)
51
52 install:
53
54 clean:
55 rm -rf $(PKG_BUILD_DIR)
56 rm -f $(KDIR)/loader-*.gz $(KDIR)/loader-*.elf $(KDIR)/loader-*.bin
This page took 0.054568 seconds and 5 git commands to generate.