From 60a057fd292c35c4b0d63d38597576c0202a3c13 Mon Sep 17 00:00:00 2001 From: Meng Li Date: Mon, 12 Jun 2023 15:15:00 +0800 Subject: meta-freescale: tsntool: remove redundant parameters from BIN_LDFLAGS The recipe file has pass the same parameter(-Wl,-rpath-link,) to Makefile, so remove redundant parameters from BIN_LDFLAGS. Signed-off-by: Meng Li --- ...ove-redundant-parameters-from-BIN_LDFLAGS.patch | 28 ++++++++++++++++++++++ recipes-extended/tsntool/tsntool_git.bb | 6 +++++ 2 files changed, 34 insertions(+) create mode 100644 recipes-extended/tsntool/tsntool/0001-tsntool-remove-redundant-parameters-from-BIN_LDFLAGS.patch diff --git a/recipes-extended/tsntool/tsntool/0001-tsntool-remove-redundant-parameters-from-BIN_LDFLAGS.patch b/recipes-extended/tsntool/tsntool/0001-tsntool-remove-redundant-parameters-from-BIN_LDFLAGS.patch new file mode 100644 index 000000000..807f6a822 --- /dev/null +++ b/recipes-extended/tsntool/tsntool/0001-tsntool-remove-redundant-parameters-from-BIN_LDFLAGS.patch @@ -0,0 +1,28 @@ +From 2cf9a3f919317784e7cecdff6b632cdb2665c580 Mon Sep 17 00:00:00 2001 +From: Meng Li +Date: Mon, 12 Jun 2023 15:17:21 +0800 +Subject: [PATCH] tsntool: remove redundant parameters from BIN_LDFLAGS + +The recipe file has pass the same parameter(-Wl,-rpath-link,) +to Makefile, so remove redundant parameters from BIN_LDFLAGS. + +Signed-off-by: Meng Li +--- + Makefile | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 0ba88b4..39a98c0 100644 +--- a/Makefile ++++ b/Makefile +@@ -16,7 +16,6 @@ BIN_CFLAGS += -Wall -Wextra -Wno-error=unused-parameter -Wno-error=sign-compare + BIN_CFLAGS += $(shell $(PKG_CONFIG) --cflags libnl-3.0 libnl-genl-3.0 libcjson) -Iinclude + BIN_LDFLAGS += -ltsn $(shell $(PKG_CONFIG) --libs libnl-3.0 libnl-genl-3.0 libcjson) -lpthread -lm -lrt + BIN_LDFLAGS += -lreadline -ltermcap -L. +-BIN_LDFLAGS += -Wl,-rpath,$(shell pwd) # Compiled lib at local folder + + BIN_SRC = + LIB_SRC = +-- +2.40.1 + diff --git a/recipes-extended/tsntool/tsntool_git.bb b/recipes-extended/tsntool/tsntool_git.bb index 6d1eb69c2..2ad4a0c49 100644 --- a/recipes-extended/tsntool/tsntool_git.bb +++ b/recipes-extended/tsntool/tsntool_git.bb @@ -7,9 +7,15 @@ DEPENDS = "cjson libnl readline" inherit pkgconfig +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + SRC_URI = "git://github.com/nxp-qoriq/tsntool;protocol=https;nobranch=1" SRCREV = "a0769e23304957a22f0cbeee6d1f547b20c3c21e" +SRC_URI:append = " \ + file://0001-tsntool-remove-redundant-parameters-from-BIN_LDFLAGS.patch \ +" + S = "${WORKDIR}/git" do_configure[depends] += "virtual/kernel:do_shared_workdir" -- cgit v1.2.3-54-g00ecf