Makefile 1.0 KB

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