2 # Copyright (C) 2016 Daniel Golle <daniel@makrotopia.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
12 PKG_SOURCE_URL:=http://www.tortall.net/projects/yasm/releases/
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_MD5SUM:=fc9e586751ff789b34b1f21d572d96af
17 HOST_BUILD_PARALLEL:=1
19 include $(INCLUDE_DIR)/toolchain-build.mk
23 --prefix=$(TOOLCHAIN_DIR) \
24 --build=$(GNU_HOST_NAME) \
25 --host=$(GNU_HOST_NAME) \
26 --target=$(REAL_GNU_TARGET_NAME) \
27 --with-sysroot=$(TOOLCHAIN_DIR) \
33 $(SOFT_FLOAT_CONFIG_OPTION) \
36 $(call Host/Prepare/Default)
37 ln -snf $(notdir $(HOST_BUILD_DIR)) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
38 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/
42 (cd $(HOST_BUILD_DIR); \
48 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) all
52 $(MAKE) -C $(HOST_BUILD_DIR) \
53 prefix=$(TOOLCHAIN_DIR) \
60 $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
63 $(eval $(call HostBuild))