Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=kernel
  10. PKG_FLAGS:=hold
  11. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
  12. SCAN_DEPS=modules/*.mk $(TOPDIR)/target/linux/*/modules.mk $(TOPDIR)/include/netfilter.mk
  13. PKG_LICENSE:=GPLv2
  14. PKG_LICENSE_FILES:=
  15. export SHELL:=/bin/sh
  16. .ONESHELL:
  17. .SHELLFLAGS = -ec
  18. include $(INCLUDE_DIR)/package.mk
  19. ifeq ($(DUMP),)
  20. STAMP_BUILT:=$(STAMP_BUILT)_$(shell $(SCRIPT_DIR)/kconfig.pl $(LINUX_DIR)/.config | mkhash md5)
  21. -include $(LINUX_DIR)/.config
  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. define KernelPackage/depends
  31. endef
  32. CONFIG_PACKAGE_kernel=y
  33. define Package/kernel
  34. SECTION:=sys
  35. CATEGORY:=Kernel
  36. DEFAULT:=y
  37. TITLE:=Virtual kernel package
  38. VERSION:=$(LINUX_VERSION)-$(LINUX_RELEASE)-$(LINUX_VERMAGIC)
  39. URL:=http://www.kernel.org/
  40. PKG_FLAGS:=nonshared
  41. endef
  42. define Package/kernel/install
  43. # nothing to do
  44. endef
  45. define Package/kernel/extra_provides
  46. sed -e 's,.*/,,' $(LINUX_DIR)/modules.builtin;
  47. endef
  48. $(eval $(if $(DUMP),,$(call BuildPackage,kernel)))
  49. include $(sort $(wildcard ./modules/*.mk))
  50. -include $(TOPDIR)/target/linux/*/modules.mk