[ar71xx] mzk-w04nu: add GPIO LEDs and buttons
[openwrt.git] / target / linux / generic-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 1823 2005-09-01 20:07:42Z nbd $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME := loader
12 PKG_VERSION := 0.05
13
14 PKG_BUILD_DIR := $(KDIR)/$(PKG_NAME)-$(PKG_VERSION)$(LOADER_TYPE)
15
16 $(PKG_BUILD_DIR)/.prepared:
17 mkdir $(PKG_BUILD_DIR)
18 $(CP) ./src/* $(PKG_BUILD_DIR)/
19 touch $@
20
21 $(PKG_BUILD_DIR)/lzma.elf: $(PKG_BUILD_DIR)/.prepared $(PKG_BUILD_DIR)/vmlinux.lzma
22 PATH="$(TARGET_PATH)" $(MAKE) -C $(PKG_BUILD_DIR) \
23 CC="$(TARGET_CC)" CROSS_COMPILE="$(TARGET_CROSS)" \
24 RAMSIZE=$(RAMSIZE) \
25 LOADADDR=$(LOADADDR) \
26 KERNEL_ENTRY=$(KERNEL_ENTRY) \
27 IMAGE_COPY=$(IMAGE_COPY)
28
29
30 $(PKG_BUILD_DIR)/vmlinux.lzma: $(KDIR)/vmlinux.lzma
31 $(CP) $< $@
32
33 $(KDIR)/loader$(LOADER_TYPE).elf: $(PKG_BUILD_DIR)/lzma.elf
34 $(CP) $< $@
35
36 $(KDIR)/loader$(LOADER_TYPE).bin: $(PKG_BUILD_DIR)/lzma.bin
37 $(CP) $< $@
38
39 download:
40 prepare: $(PKG_BUILD_DIR)/.prepared
41 compile: $(KDIR)/loader$(LOADER_TYPE).elf $(KDIR)/loader$(LOADER_TYPE).bin
42 install:
43
44 clean:
45 rm -rf $(PKG_BUILD_DIR)
46 rm -f $(KDIR)/loader.elf
47 rm -f $(KDIR)/loader.bin
This page took 0.044654 seconds and 5 git commands to generate.