mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
4a5da15b3d
Use gzip archive to avoid xz usage. Signed-off-by: Yanase Yuki <dev@zpc.st> Link: https://github.com/openwrt/openwrt/pull/16373 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
54 lines
1.2 KiB
Makefile
54 lines
1.2 KiB
Makefile
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=nasm
|
|
PKG_VERSION:=2.16.03
|
|
|
|
PKG_SOURCE_URL:=https://www.nasm.us/pub/nasm/releasebuilds/$(PKG_VERSION)/
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_HASH:=5bc940dd8a4245686976a8f7e96ba9340a0915f2d5b88356874890e207bdb581
|
|
PKG_CPE_ID:=cpe:/a:nasm:netwide_assembler
|
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/toolchain-build.mk
|
|
|
|
HOST_CONFIGURE_ARGS+= \
|
|
--target=$(REAL_GNU_TARGET_NAME) \
|
|
--with-sysroot=$(TOOLCHAIN_DIR) \
|
|
--disable-lto \
|
|
--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); \
|
|
./autogen.sh \
|
|
);
|
|
$(call Host/Configure/Default)
|
|
endef
|
|
|
|
define Host/Install
|
|
$(MAKE) -C $(HOST_BUILD_DIR) \
|
|
$(HOST_MAKE_FLAGS) \
|
|
prefix=$(TOOLCHAIN_DIR) \
|
|
install
|
|
endef
|
|
|
|
define Host/Clean
|
|
rm -rf \
|
|
$(HOST_BUILD_DIR) \
|
|
$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
|
|
endef
|
|
|
|
$(eval $(call HostBuild))
|