Makefile 746 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (C) 2007 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. ARCH:=powerpc
  9. BOARD:=ps3
  10. BOARDNAME:=Sony PS3 Game Console
  11. SUBTARGETS=petitboot
  12. LINUX_VERSION:=2.6.27.8
  13. KERNEL_CC:=
  14. include $(INCLUDE_DIR)/target.mk
  15. define Target/Description
  16. Build bootloader images for the Sony PS3 Game Console
  17. endef
  18. ifeq ($(CONFIG_TARGET_ps3_petitboot),y)
  19. # no patches required
  20. # provide facility for specific patches
  21. PATCH_DIR=patches-petitboot
  22. define Kernel/Prepare
  23. bzcat $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
  24. $(call PatchDir,$(PATCH_DIR),)
  25. endef
  26. endif
  27. KERNELNAME:="zImage"
  28. $(eval $(call BuildTarget))