Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
toolchain: include yasm in x86 toolchain
Some libraries require yasm to build with in-line assembly for x86 targets. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
- Loading branch information
Showing
3 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# | ||
# Copyright (C) 2016 Daniel Golle <daniel@makrotopia.org> | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=yasm | ||
PKG_VERSION:=1.3.0 | ||
|
||
PKG_SOURCE_URL:=http://www.tortall.net/projects/yasm/releases/ | ||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
|
||
PKG_MD5SUM:=fc9e586751ff789b34b1f21d572d96af | ||
|
||
HOST_BUILD_PARALLEL:=1 | ||
|
||
include $(INCLUDE_DIR)/toolchain-build.mk | ||
|
||
YASM_CONFIGURE:= \ | ||
./configure \ | ||
--prefix=$(TOOLCHAIN_DIR) \ | ||
--build=$(GNU_HOST_NAME) \ | ||
--host=$(GNU_HOST_NAME) \ | ||
--target=$(REAL_GNU_TARGET_NAME) \ | ||
--with-sysroot=$(TOOLCHAIN_DIR) \ | ||
--disable-multilib \ | ||
--disable-werror \ | ||
--disable-nls \ | ||
--disable-sim \ | ||
--disable-gdb \ | ||
$(SOFT_FLOAT_CONFIG_OPTION) \ | ||
|
||
define Host/Prepare | ||
$(call Host/Prepare/Default) | ||
ln -snf $(notdir $(HOST_BUILD_DIR)) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME) | ||
$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/ | ||
endef | ||
|
||
define Host/Configure | ||
(cd $(HOST_BUILD_DIR); \ | ||
$(YASM_CONFIGURE) \ | ||
); | ||
endef | ||
|
||
define Host/Compile | ||
+$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) all | ||
endef | ||
|
||
define Host/Install | ||
$(MAKE) -C $(HOST_BUILD_DIR) \ | ||
prefix=$(TOOLCHAIN_DIR) \ | ||
install | ||
endef | ||
|
||
define Host/Clean | ||
rm -rf \ | ||
$(HOST_BUILD_DIR) \ | ||
$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME) | ||
endef | ||
|
||
$(eval $(call HostBuild)) |