From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wes1-so2.wedos.net (wes1-so2.wedos.net [46.28.106.16]) by dpdk.org (Postfix) with ESMTP id AD228CF17 for ; Fri, 17 Jun 2016 14:57:56 +0200 (CEST) Received: from pcviktorin.fit.vutbr.cz (pcviktorin.fit.vutbr.cz [147.229.13.147]) by wes1-so2.wedos.net (Postfix) with ESMTPSA id 3rWKzm2yHsz6rT; Fri, 17 Jun 2016 14:57:56 +0200 (CEST) From: Jan Viktorin To: dev@dpdk.org Cc: Jan Viktorin , Thomas Monjalon Date: Fri, 17 Jun 2016 14:52:47 +0200 Message-Id: <1466167967-12873-1-git-send-email-viktorin@rehivetech.com> X-Mailer: git-send-email 2.8.0 Subject: [dpdk-dev] [PATCH] app/test: call objdump in platform-independent way X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2016 12:57:56 -0000 Using of the /dev/stdin generates a warning when compiling on FreeBSD: objcopy: Warning: '/dev/stdin' is not an ordinary file app/test/Makefile:78: recipe for target 'test_resource_c.res.o' failed # ls -l /dev/stdin lrwxr-xr-x 1 root wheel 4 Jun 17 12:24 /dev/stdin -> fd/0 Replace /dev/stdin by a temporary file. Signed-off-by: Jan Viktorin Reported-by: Thomas Monjalon --- app/test/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/test/Makefile b/app/test/Makefile index 5e3ebdc..36ff089 100644 --- a/app/test/Makefile +++ b/app/test/Makefile @@ -43,13 +43,14 @@ define linked_resource SRCS-y += $(1).res.o $(1).res.o: $(2) @ echo ' MKRES $$@' + $Q ln -fs $$< resource.tmp $Q $(OBJCOPY) -I binary -B $(RTE_OBJCOPY_ARCH) -O $(RTE_OBJCOPY_TARGET) \ --rename-section \ .data=.rodata,alloc,load,data,contents,readonly \ - --redefine-sym _binary__dev_stdin_start=beg_$(1) \ - --redefine-sym _binary__dev_stdin_end=end_$(1) \ - --redefine-sym _binary__dev_stdin_size=siz_$(1) \ - /dev/stdin $$@ < $$< + --redefine-sym _binary_resource_tmp_start=beg_$(1) \ + --redefine-sym _binary_resource_tmp_end=end_$(1) \ + --redefine-sym _binary_resource_tmp_size=siz_$(1) \ + resource.tmp $$@ && rm -f resource.tmp endef ifeq ($(CONFIG_RTE_APP_TEST_RESOURCE_TAR),y) -- 2.8.0