1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-26 17:41:34 +02:00

add build u-boot

This commit is contained in:
xiangfu 2009-04-05 16:22:48 +00:00
parent bdb8bc25d6
commit e043feab69

View File

@ -24,7 +24,9 @@ GCC_VER=gcc-4.1.2
GLIBC_VER=glibc-2.6.1 GLIBC_VER=glibc-2.6.1
GLIBC_PORTS_VER=glibc-ports-2.6.1 GLIBC_PORTS_VER=glibc-ports-2.6.1
KERNEL_HEADERS_VER=linux-headers-2.6.24.3 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 TOOLCHAIN_PATH=toolchain
DL_PATH=$(TOOLCHAIN_PATH)/dl DL_PATH=$(TOOLCHAIN_PATH)/dl
INSTALL_PATH=install 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 make install_root=$(TOOLCHAIN_PATH)/$(GLIBC_VER)/glibc-install install
touch $@ 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 ### clean up
distclean: clean clean-toolchain distclean: clean clean-toolchain
@ -138,6 +151,9 @@ clean-toolchain: clean-glibc
clean-glibc: clean-glibc:
rm -rf $(TOOLCHAIN_PATH)/$(GLIBC_VER) glibc rm -rf $(TOOLCHAIN_PATH)/$(GLIBC_VER) glibc
clean-u-boot:
rm -rf $(U-BOOT_PATH)/$(U-BOOT_VER)
help: help:
make --print-data-base --question | \ make --print-data-base --question | \
awk '/^[^.%][-A-Za-z0-9_]*:/ \ awk '/^[^.%][-A-Za-z0-9_]*:/ \