source: SVN/cambria/redboot/Makefile

Last change on this file was 1, checked in by Tim Harvey, 3 years ago

restored latest version of files from server backup

Signed-off-by: Tim Harvey <tharvey@…>

File size: 1.6 KB
Line 
1
2TOOL_PATH:=/opt/H-i686-pc-linux-gnulibc2.2/bin
3OUTPUT_DIR:=images/
4
5
6####################################################################################
7TARGET:=kixrp435
8VERSION:=current
9TOPDIR:=${shell pwd}
10BUILD_DIR:=$(TOPDIR)/build
11ECOS_REPOSITORY:=$(TOPDIR)/packages
12ECOSCFG_PATH:=$(TOPDIR)/bin
13BYTESWAP:=$(TOPDIR)/tools/byteswap
14PLATFORM_DIR:=$(ECOS_REPOSITORY)/hal/arm/xscale/$(TARGET)/current
15PATH:=$(PATH):$(strip $(TOOL_PATH))
16export TOPDIR BUILD_DIR PATH ECOS_REPOSITORY
17
1832M_SIZE:=0x02000000
1964M_SIZE:=0x04000000
20128M_SIZE:=0x08000000
21256M_SIZE:=0x10000000
22
23
24all: rb
25
26
27
28output:
29        @echo 'making output_dir....'
30        @if [ ! -d $(OUTPUT_DIR) ]; then \
31                mkdir -p $(OUTPUT_DIR); \
32        fi;
33
34$(BYTESWAP):
35        $(MAKE) -r -C tools
36
37tree:
38        @echo 'creating tree.....'
39        @if [ ! -d $(BUILD_DIR) ]; then \
40                mkdir -p $(BUILD_DIR); \
41        fi; \
42        cd $(BUILD_DIR); \
43        $(ECOSCFG_PATH)/ecosconfig new $(TARGET)_npe redboot; \
44        $(ECOSCFG_PATH)/ecosconfig import $(ECOS_REPOSITORY)/hal/arm/xscale/$(TARGET)/current/misc/redboot_ROM.ecm; \
45        $(ECOSCFG_PATH)/ecosconfig tree; \
46
47
48_build:
49        @echo 'building.....'
50        @cd $(BUILD_DIR); \
51        export PATH=$(PATH); \
52        $(MAKE)
53
54
55rb: tree _build output $(BYTESWAP)
56        cp $(BUILD_DIR)/install/bin/redboot.bin $(OUTPUT_DIR)/rb.bin
57
58clean:
59        @if [ -d $(BUILD_DIR) -a \( "$(BUILD_DIR)" != "/" -a "$(BUILD_DIR)" != "//" \) ]; then \
60                echo "Build directory $(BUILD_DIR) does exist and is not /. Removing"; \
61                rm -rf $(BUILD_DIR); \
62        fi;
63
64
65help:
66        @echo  ''
67        @echo  ' clean       : remove build directory'
68        @echo  ''
69        @echo  '             : build universal ROM image'
70        @echo  ''
71        @echo  ''
72
73
74
75
Note: See TracBrowser for help on using the repository browser.