Makefile 1.0 KB

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