1
0

Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= grub
  5. PKG_VERSION:= 1.98
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= c0bcf60e524739bb64e3a2d4e3732a59
  8. PKG_DESCR:= GRUB2 bootloader (source package)
  9. PKG_SECTION:= base
  10. PKG_URL:= http://www.gnu.org/software/grub
  11. PKG_SITES:= ftp://alpha.gnu.org/gnu/grub/
  12. PKG_HOST_DEPENDS:= linux
  13. PKG_ARCH_DEPENDS:= x86 x86_64
  14. PKG_NOPARALLEL:= 1
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,GRUB,grub,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. ifeq ($(ADK_STATIC),y)
  18. TARGET_CFLAGS+= -static
  19. TARGET_LDFLAGS+= -static
  20. endif
  21. XAKE_FLAGS+= GCC_HONOUR_COPTS=s CPPFLAGS_FOR_BUILD="-I./include"
  22. CONFIGURE_ARGS+= --disable-efiemu \
  23. --disable-grub-mkfont \
  24. --disable-grub-fstest
  25. grub-install:
  26. ${INSTALL_DIR} $(IDIR_GRUB)/usr/{sbin,lib,bin}
  27. ${INSTALL_DIR} $(IDIR_GRUB)/etc
  28. ${CP} ${WRKINST}/etc/grub.d $(IDIR_GRUB)/etc
  29. ${CP} ${WRKINST}/usr/lib/* $(IDIR_GRUB)/usr/lib
  30. ${INSTALL_BIN} ${WRKINST}/usr/bin/* $(IDIR_GRUB)/usr/bin
  31. ${INSTALL_BIN} ${WRKINST}/usr/sbin/* $(IDIR_GRUB)/usr/sbin
  32. include ${TOPDIR}/mk/pkg-bottom.mk