mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-26 01:59:44 +02:00
add build u-boot
This commit is contained in:
parent
bdb8bc25d6
commit
e043feab69
16
Makefile
16
Makefile
@ -24,7 +24,9 @@ GCC_VER=gcc-4.1.2
|
||||
GLIBC_VER=glibc-2.6.1
|
||||
GLIBC_PORTS_VER=glibc-ports-2.6.1
|
||||
KERNEL_HEADERS_VER=linux-headers-2.6.24.3
|
||||
U-BOOT_VER=u-boot-1.1.6
|
||||
|
||||
U-BOOT_PATH=u-boot
|
||||
TOOLCHAIN_PATH=toolchain
|
||||
DL_PATH=$(TOOLCHAIN_PATH)/dl
|
||||
INSTALL_PATH=install
|
||||
@ -124,6 +126,17 @@ glibc: $(DL_PATH)/$(GLIBC_PACKAGE) $(DL_PATH)/$(GLIBC_PORTS_PACKAGE) $(DL_PATH)/
|
||||
make install_root=$(TOOLCHAIN_PATH)/$(GLIBC_VER)/glibc-install install
|
||||
touch $@
|
||||
|
||||
|
||||
### u-boot
|
||||
.PHONY: u-boot
|
||||
u-boot:
|
||||
export PATH=/opt/mipseltools-gcc412-glibc261/bin:$PATH
|
||||
tar -xjvf $(U-BOOT_PATH)/dl/u-boot-1.1.6.tar.bz2 -C $(U-BOOT_PATH)
|
||||
cd $(U-BOOT_PATH)/$(U-BOOT_VER) && \
|
||||
patch -Np1 -i ../patchs/u-boot-1.1.6-jz-20090306.patch && \
|
||||
make pavo_nand_config && \
|
||||
make
|
||||
|
||||
### clean up
|
||||
|
||||
distclean: clean clean-toolchain
|
||||
@ -138,6 +151,9 @@ clean-toolchain: clean-glibc
|
||||
clean-glibc:
|
||||
rm -rf $(TOOLCHAIN_PATH)/$(GLIBC_VER) glibc
|
||||
|
||||
clean-u-boot:
|
||||
rm -rf $(U-BOOT_PATH)/$(U-BOOT_VER)
|
||||
|
||||
help:
|
||||
make --print-data-base --question | \
|
||||
awk '/^[^.%][-A-Za-z0-9_]*:/ \
|
||||
|
Loading…
Reference in New Issue
Block a user