1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 16:25:20 +02:00

update Makefile

This commit is contained in:
xiangfu 2009-04-27 17:03:46 +00:00
parent 4e23a51d53
commit d13f0af3b0
3 changed files with 10 additions and 21 deletions

View File

@ -24,11 +24,7 @@ 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
KERNEL_VER=linux-2.6.24.3
U-BOOT_VER=u-boot-1.1.6
U-BOOT_PATH=u-boot
KERNEL_PATH=kernel
TOOLCHAIN_PATH=toolchain TOOLCHAIN_PATH=toolchain
DL_PATH=$(TOOLCHAIN_PATH)/dl DL_PATH=$(TOOLCHAIN_PATH)/dl
INSTALL_PATH=install INSTALL_PATH=install
@ -85,7 +81,6 @@ $(INSTALL_PATH):
### toolchain stuff ### toolchain stuff
binutils: $(DL_PATH)/$(BINUTILS_PACKAGE) binutils: $(DL_PATH)/$(BINUTILS_PACKAGE)
tar -xvjf $(DL_PATH)/$(BINUTILS_PACKAGE) -C $(TOOLCHAIN_PATH) tar -xvjf $(DL_PATH)/$(BINUTILS_PACKAGE) -C $(TOOLCHAIN_PATH)
mkdir -p $(TOOLCHAIN_PATH)/$(BINUTILS_VER)/build mkdir -p $(TOOLCHAIN_PATH)/$(BINUTILS_VER)/build
@ -144,17 +139,17 @@ glibc: $(DL_PATH)/$(GLIBC_PACKAGE) $(DL_PATH)/$(GLIBC_PORTS_PACKAGE) $(DL_PATH)/
.PHONY: u-boot .PHONY: u-boot
u-boot: u-boot:
export PATH=/opt/mipseltools-gcc412-glibc261/bin:$PATH 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) git clone git://github.com/xiangfu/pi-u-boot.git u-boot
cd $(U-BOOT_PATH)/$(U-BOOT_VER) && \ cd u-boot && \
patch -Np1 -i ../patchs/u-boot-1.1.6-jz-20090306.patch && \ make pi_config && \
make pavo_nand_config && \
make make
### usbboot ### usbboot
.PHONY: usbboot .PHONY: usbboot
usbboot: usbboot-tools usbboot-stage usbboot: usbboot-tools usbboot-stage
usbboot-tools: usbboot-tools: usbboot-stage
make -C flash-tool
usbboot-stage: usbboot-stage:
make -C $(USBBOOT_STAGE1_PATH) make -C $(USBBOOT_STAGE1_PATH)
@ -164,18 +159,15 @@ usbboot-stage:
.PHONY: kernel .PHONY: kernel
kernel: kernel:
export PATH=/opt/mipseltools-gcc412-glibc261/bin:$PATH export PATH=/opt/mipseltools-gcc412-glibc261/bin:$PATH
tar -xjvf $(KERNEL_PATH)/dl/linux-2.6.24.3.tar.bz2 -C $(KERNEL_PATH) git clone git://github.com/xiangfu/pi-kernel.git kernel
cd $(KERNEL_PATH)/$(KERNEL_VER) && \ cd kernel && \
patch -Np1 -i ../patchs/linux-2.6.24.3-jz-20090226.patch && \ make pi_defconfig && \
make pavo_defconfig && \ make uImage
make xconfig && \
make zImage
### clean up ### clean up
distclean: clean clean-toolchain distclean: clean clean-toolchain
clean: clean-u-boot clean:
clean-toolchain: clean-glibc clean-toolchain: clean-glibc
rm -rf $(TOOLCHAIN_PATH)/$(BINUTILS_VER) binutils rm -rf $(TOOLCHAIN_PATH)/$(BINUTILS_VER) binutils
@ -185,9 +177,6 @@ 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_]*:/ \