Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. PKG_FILE_DEPEND:=$(MODULES_DIR)
  15. # build all in-tree kmod-* packages by default
  16. KMOD_DEFAULT:=m
  17. include $(INCLUDE_DIR)/package.mk
  18. ifeq ($(DUMP),)
  19. -include $(LINUX_DIR)/.config
  20. NF_KMOD:=1
  21. include $(INCLUDE_DIR)/netfilter.mk
  22. endif
  23. define Build/Prepare
  24. mkdir -p $(PKG_BUILD_DIR)
  25. endef
  26. define Build/Configure
  27. endef
  28. define Build/Compile
  29. endef
  30. CONFIG_PACKAGE_kernel=y
  31. define Package/kernel
  32. SECTION:=sys
  33. CATEGORY:=Kernel
  34. DEFAULT:=y
  35. TITLE:=Virtual kernel package
  36. DESCRIPTION:=Virtual kernel package
  37. VERSION:=$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)
  38. endef
  39. define Package/kernel/install
  40. # nothing to do
  41. endef
  42. # this is more robust than ifdef around eval/call
  43. ifneq ($(DUMP),1)
  44. define BuildKernel
  45. $(call BuildPackage,kernel)
  46. endef
  47. endif
  48. $(eval $(call BuildKernel))
  49. include $(TOPDIR)/target/linux/*/modules.mk
  50. include ./modules/*.mk