Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. include $(INCLUDE_DIR)/package.mk
  18. STAMP_BUILT:=$(STAMP_BUILT)_$(firstword $(shell $(SCRIPT_DIR)/kconfig.pl $(LINUX_DIR)/.config | md5sum))
  19. ifeq ($(DUMP),)
  20. -include $(LINUX_DIR)/.config
  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. define KernelPackage/depends
  30. endef
  31. CONFIG_PACKAGE_kernel=y
  32. define Package/kernel
  33. SECTION:=sys
  34. CATEGORY:=Kernel
  35. DEFAULT:=y
  36. TITLE:=Virtual kernel package
  37. VERSION:=$(LINUX_VERSION)-$(LINUX_RELEASE)-$(LINUX_VERMAGIC)
  38. URL:=http://www.kernel.org/
  39. endef
  40. define Package/kernel/install
  41. # nothing to do
  42. endef
  43. define Package/kernel/extra_provides
  44. sed -e 's,.*/,,' $(LINUX_DIR)/modules.builtin;
  45. endef
  46. $(eval $(if $(DUMP),,$(call BuildPackage,kernel)))
  47. include $(sort $(wildcard ./modules/*.mk))
  48. -include $(TOPDIR)/target/linux/*/modules.mk