Makefile 958 B

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