2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
9 PKG_NAME := firmware-utils
10 PKG_BUILD_DIR:=$(TOOL_BUILD_DIR)/firmware-utils
12 include $(INCLUDE_DIR)/host-build.mk
14 CFLAGS := -O2 -I $(STAGING_DIR)/include-host -include endian.h
17 $(CC) $(CFLAGS) -o $(PKG_BUILD_DIR)/bin/$(1) src/$(1).c
21 mkdir -p $(PKG_BUILD_DIR)/bin
24 $(call cc,motorola-bin)
36 $(CP) $(PKG_BUILD_DIR)/bin/* $(STAGING_DIR)/bin
39 $(eval $(call HostBuild))