Makefile 732 B

1234567891011121314151617181920212223242526272829303132333435
  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:=dfboot
  11. PKG_VERSION:=0.1
  12. PKG_RELEASE:=1
  13. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
  14. include $(INCLUDE_DIR)/package.mk
  15. define Build/Prepare
  16. mkdir -p $(PKG_BUILD_DIR)
  17. $(CP) ./src/* $(PKG_BUILD_DIR)/
  18. endef
  19. define Build/Compile
  20. $(MAKE) -C $(PKG_BUILD_DIR) \
  21. $(TARGET_CONFIGURE_OPTS) \
  22. CFLAGS="$(TARGET_CFLAGS)"
  23. endef
  24. define Build/InstallDev
  25. dd if=$(PKG_BUILD_DIR)/binary/dfboot.bin of=$(PKG_BUILD_DIR)/binary/dfboot.block bs=32k count=1 conv=sync
  26. endef
  27. $(eval $(call Build/DefaultTargets))