2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 4439 2006-08-04 17:14:36Z nbd $
9 include $(TOPDIR
)/rules.mk
12 LOADER_NAME
:= loader-
$(LOADER
)
15 LOADER_BIN
:= $(KDIR
)/$(LOADER_NAME
).bin
16 LOADER_GZ
:= $(KDIR
)/$(LOADER_NAME
).gz
17 LOADER_ELF
:= $(KDIR
)/$(LOADER_NAME
).elf
20 LZMA_TEXT_START
:= 0x80300000
22 PKG_NAME
:= lzma-loader
23 PKG_BUILD_DIR
:= $(KDIR
)/$(PKG_NAME
)
25 .PHONY
: loader-compile
27 $(PKG_BUILD_DIR
)/.prepared
:
28 mkdir
$(PKG_BUILD_DIR
)
29 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
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
) \
39 $(LOADER_GZ
): $(PKG_BUILD_DIR
)/loader.bin
42 $(LOADER_ELF
) : $(PKG_BUILD_DIR
)/loader.elf
45 $(LOADER_BIN
) : $(PKG_BUILD_DIR
)/loader.bin
49 prepare
: $(PKG_BUILD_DIR
)/.prepared
50 compile
: loader-compile
$(LOADER_BIN
) $(LOADER_GZ
) $(LOADER_ELF
)
55 rm -rf
$(PKG_BUILD_DIR
)
56 rm -f
$(KDIR
)/loader-
*.gz
$(KDIR
)/loader-
*.elf
$(KDIR
)/loader-
*.bin
This page took 0.049392 seconds and 5 git commands to generate.