2016-08-19 15:49:09 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2018-06-28 23:28:02 +00:00
|
|
|
PKG_NAME:=nasm
|
2024-09-12 12:19:11 +00:00
|
|
|
PKG_VERSION:=2.16.03
|
2016-08-19 15:49:09 +00:00
|
|
|
|
2018-06-28 23:28:02 +00:00
|
|
|
PKG_SOURCE_URL:=https://www.nasm.us/pub/nasm/releasebuilds/$(PKG_VERSION)/
|
2024-09-12 12:19:11 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_HASH:=5bc940dd8a4245686976a8f7e96ba9340a0915f2d5b88356874890e207bdb581
|
2024-04-26 08:41:15 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:nasm:netwide_assembler
|
2016-08-19 15:49:09 +00:00
|
|
|
|
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/toolchain-build.mk
|
|
|
|
|
2018-06-28 23:28:02 +00:00
|
|
|
HOST_CONFIGURE_ARGS+= \
|
2016-08-19 15:49:09 +00:00
|
|
|
--target=$(REAL_GNU_TARGET_NAME) \
|
|
|
|
--with-sysroot=$(TOOLCHAIN_DIR) \
|
2018-07-10 11:08:30 +00:00
|
|
|
--disable-lto \
|
2016-08-19 15:49:09 +00:00
|
|
|
--disable-werror \
|
|
|
|
--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); \
|
2018-06-28 23:28:02 +00:00
|
|
|
./autogen.sh \
|
2016-08-19 15:49:09 +00:00
|
|
|
);
|
2018-06-28 23:28:02 +00:00
|
|
|
$(call Host/Configure/Default)
|
2016-08-19 15:49:09 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) \
|
2018-07-07 12:50:51 +00:00
|
|
|
$(HOST_MAKE_FLAGS) \
|
2016-08-19 15:49:09 +00:00
|
|
|
prefix=$(TOOLCHAIN_DIR) \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Clean
|
|
|
|
rm -rf \
|
|
|
|
$(HOST_BUILD_DIR) \
|
|
|
|
$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|