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