2005-06-23 07:09:05 +02:00
|
|
|
ifeq ($(ARCH),powerpc)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# yaboot
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
YABOOT_SOURCE:=yaboot-1.3.13.tar.gz
|
|
|
|
YABOOT_SITE:=http://penguinppc.org/bootloaders/yaboot
|
|
|
|
YABOOT_DIR:=$(BUILD_DIR)/yaboot-1.3.13
|
|
|
|
|
|
|
|
$(DL_DIR)/$(YABOOT_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(YABOOT_SITE)/$(YABOOT_SOURCE)
|
|
|
|
|
|
|
|
yaboot-source: $(DL_DIR)/$(YABOOT_SOURCE)
|
|
|
|
|
|
|
|
$(YABOOT_DIR)/Makefile: $(DL_DIR)/$(YABOOT_SOURCE)
|
2006-10-01 17:17:52 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(YABOOT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
2005-06-23 07:09:05 +02:00
|
|
|
touch -c $(YABOOT_DIR)/Makefile
|
|
|
|
|
|
|
|
$(YABOOT_DIR)/second/yaboot: $(YABOOT_DIR)/Makefile
|
|
|
|
make -C $(YABOOT_DIR) CROSS=$(TARGET_CROSS)
|
|
|
|
touch -c $(YABOOT_DIR)/second/yaboot
|
|
|
|
|
|
|
|
yaboot: $(YABOOT_DIR)/second/yaboot
|
|
|
|
|
|
|
|
yaboot-clean:
|
|
|
|
make -C $(YABOOT_DIR) clean
|
|
|
|
|
|
|
|
yaboot-dirclean:
|
|
|
|
rm -rf $(YABOOT_DIR)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_TARGET_YABOOT)),y)
|
|
|
|
TARGETS+=yaboot
|
|
|
|
endif
|
|
|
|
|