Makefile 868 B

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