build: remove nasm 95/35895/2
authorDamjan Marion <damarion@cisco.com>
Tue, 5 Apr 2022 17:26:51 +0000 (19:26 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 6 Apr 2022 08:19:14 +0000 (08:19 +0000)
Type: make
Change-Id: I5ee34e9d7156ccdc7a8310e8332347d850459495
Signed-off-by: Damjan Marion <damarion@cisco.com>
Makefile
build/external/Makefile
build/external/packages/ipsec-mb.mk
build/external/packages/nasm.mk [deleted file]
build/external/patches/ipsec-mb_0.54/0001-nasm-ver-check.patch [deleted file]
build/external/patches/ipsec-mb_0.55/0001-nasm-ver-check-fix.patch [deleted file]

index 37dbf59..87ab40f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -77,6 +77,7 @@ DEB_DEPENDS += python3-virtualenv
 DEB_DEPENDS += libssl-dev
 DEB_DEPENDS += libelf-dev # for libbpf (af_xdp)
 DEB_DEPENDS += iperf3 # for 'make test TEST=vcl'
+DEB_DEPENDS += nasm
 
 LIBFFI=libffi6 # works on all but 20.04 and debian-testing
 
index 50d3ed3..9f6a6ce 100644 (file)
@@ -36,7 +36,6 @@ endif
 ARCH_X86_64=$(filter x86_64,$(shell uname -m))
 
 include packages.mk
-include packages/nasm.mk
 include packages/ipsec-mb.mk
 include packages/quicly.mk
 include packages/dpdk.mk
@@ -48,10 +47,10 @@ clean:
        @rm -rf $(B) $(I)
 
 .PHONY: install
-install: $(if $(ARCH_X86_64), nasm-install ipsec-mb-install) dpdk-install rdma-core-install quicly-install libbpf-install
+install: $(if $(ARCH_X86_64), ipsec-mb-install) dpdk-install rdma-core-install quicly-install libbpf-install
 
 .PHONY: config
-config: $(if $(ARCH_X86_64), nasm-config ipsec-mb-config) dpdk-config rdma-core-config quicly-build
+config: $(if $(ARCH_X86_64), ipsec-mb-config) dpdk-config rdma-core-config quicly-build
 
 ##############################################################################
 # .deb packaging
index 3649644..8750dc2 100644 (file)
@@ -22,7 +22,6 @@ ipsec-mb_tarball_md5sum_1.2  := f551d9c208893a436c1f5c146a615bd6
 ipsec-mb_tarball_md5sum      := $(ipsec-mb_tarball_md5sum_$(ipsec-mb_version))
 ipsec-mb_tarball_strip_dirs  := 1
 ipsec-mb_url                 := http://github.com/01org/intel-ipsec-mb/archive/$(ipsec-mb_tarball)
-ipsec-mb_depends             := nasm
 
 define  ipsec-mb_config_cmds
        @true
@@ -35,7 +34,6 @@ define  ipsec-mb_build_cmds
          SAFE_LOOKUP=n \
          SAFE_DATA=n \
          PREFIX=$(ipsec-mb_install_dir) \
-         NASM=$(ipsec-mb_install_dir)/bin/nasm \
          EXTRA_CFLAGS="-g -msse4.2" > $(ipsec-mb_build_log)
 endef
 
diff --git a/build/external/packages/nasm.mk b/build/external/packages/nasm.mk
deleted file mode 100644 (file)
index 2a5ce01..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright (c) 2018 Cisco and/or its affiliates.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at:
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-nasm_version            := 2.14.02
-nasm_tarball            := nasm-$(nasm_version).tar.xz
-nasm_tarball_md5sum     := 6390bd67b07ff1df9fe628b6929c0353
-nasm_tarball_strip_dirs := 1
-nasm_url                := https://ftp.osuosl.org/pub/blfs/conglomeration/nasm/$(nasm_tarball)
-nasm_cflags             := -Wno-implicit-fallthrough -std=c11
-
-$(eval $(call package,nasm))
diff --git a/build/external/patches/ipsec-mb_0.54/0001-nasm-ver-check.patch b/build/external/patches/ipsec-mb_0.54/0001-nasm-ver-check.patch
deleted file mode 100644 (file)
index d402391..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 329da9f..c7fa8ad 100644
---- a/Makefile
-+++ b/Makefile
-@@ -51,7 +51,7 @@ YASM ?= yasm
- NASM ?= nasm
- # Detect NASM version (minimum version required: 2.14)
--NASM_VERSION = $(shell nasm -v | cut -d " " -f 3)
-+NASM_VERSION = $(shell $(NASM) -v | cut -d " " -f 3)
- NASM_MAJOR_REQ = 2
- NASM_MINOR_REQ = 14
diff --git a/build/external/patches/ipsec-mb_0.55/0001-nasm-ver-check-fix.patch b/build/external/patches/ipsec-mb_0.55/0001-nasm-ver-check-fix.patch
deleted file mode 100644 (file)
index 7c2e947..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/lib/Makefile b/lib/Makefile
-index 3831172..9ce6f4c 100644
---- a/lib/Makefile
-+++ b/lib/Makefile
-@@ -51,7 +51,7 @@ YASM ?= yasm
- NASM ?= nasm
- # Detect NASM version (minimum version required: 2.14)
--NASM_VERSION = $(shell nasm -v | cut -d " " -f 3)
-+NASM_VERSION = $(shell $(NASM) -v | cut -d " " -f 3)
- NASM_MAJOR_REQ = 2
- NASM_MINOR_REQ = 14