Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # $Id$
  8. include $(TOPDIR)/rules.mk
  9. include $(INCLUDE_DIR)/kernel.mk
  10. PKG_NAME:=kernel
  11. PKG_VERSION:=$(LINUX_VERSION)-$(BOARD)
  12. PKG_RELEASE:=$(LINUX_RELEASE)
  13. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
  14. include $(INCLUDE_DIR)/package.mk
  15. ifeq ($(DUMP),)
  16. -include $(LINUX_DIR)/.config
  17. NF_KMOD:=1
  18. include $(INCLUDE_DIR)/netfilter.mk
  19. endif
  20. define Build/Prepare
  21. mkdir -p $(PKG_BUILD_DIR)
  22. endef
  23. define Build/Configure
  24. endef
  25. define Build/Compile
  26. endef
  27. CONFIG_PACKAGE_kernel=y
  28. define Package/kernel
  29. SECTION:=sys
  30. CATEGORY:=Kernel
  31. DEFAULT:=y
  32. TITLE:=Virtual kernel package
  33. DESCRIPTION:=Virtual kernel package
  34. VERSION:=$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)
  35. endef
  36. define Package/kernel/install
  37. # nothing to do
  38. endef
  39. # this is more robust than ifdef around eval/call
  40. ifneq ($(DUMP),1)
  41. define BuildKernel
  42. $(call BuildPackage,kernel)
  43. endef
  44. endif
  45. $(eval $(call BuildKernel))
  46. include $(TOPDIR)/target/linux/*/modules.mk
  47. include ./modules/*.mk