]> code.ossystems Code Review - meta-freescale.git/commitdiff
atf: remove two obsolete patches
authorTing Liu <ting.liu@nxp.com>
Fri, 12 Jun 2020 11:13:07 +0000 (19:13 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 16 Jun 2020 11:56:02 +0000 (08:56 -0300)
0001-fix-fiptool-build-error.patch fixes below issue:
| gcc fiptool.o tbbr_config.o -o fiptool -lcrypto
| /opt/ci/yocto/dunfell/bld-lx2160ardb/tmp/hosttools/ld: cannot find -lcrypto
| collect2: error: ld returned 1 exit status
| Makefile:39: recipe for target 'fiptool' failed
| make[1]: *** [fiptool] Error 1
The issue was fixed in atf_git.bb in below commit from meta-freescale:
    commit: fa4994b2d8da73fd3ae30875b3af8d7a682cdd53
    author: Daniel Klauer <daniel.klauer@gin.de>
    atf: Fix builds of native tools during build process

0001-Makefile-add-CC-gcc.patch fixes below issue:
| byte_swap.c:9:10: fatal error: stdio.h: No such file or directory
|     9 | #include <stdio.h>
|       |          ^~~~~~~~~
| compilation terminated.
| create_pbl.c:10:10: fatal error: stdio.h: No such file or directory
|    10 | #include <stdio.h>
|       |          ^~~~~~~~~
| compilation terminated.
The issue was fixed in atf source code:
    commit: 9aae9712ec09ddeae528a1896247e5c432a6a19f
    author: Biwen Li <biwen.li@nxp.com>
    plat/nxp/tools: fix a makefiles bug that will use default implicit rules

build and test have no problem without them.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
recipes-bsp/atf/atf/0001-Makefile-add-CC-gcc.patch [deleted file]
recipes-bsp/atf/atf/0001-fix-fiptool-build-error.patch [deleted file]
recipes-bsp/atf/atf_git.bb

diff --git a/recipes-bsp/atf/atf/0001-Makefile-add-CC-gcc.patch b/recipes-bsp/atf/atf/0001-Makefile-add-CC-gcc.patch
deleted file mode 100644 (file)
index efa2749..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-From 3161524085339ae214f7dee17a98ccd6c442d66b Mon Sep 17 00:00:00 2001
-From: Chunrong Guo <chunrong.guo@nxp.com>
-Date: Thu, 16 Aug 2018 17:38:04 +0800
-Subject: [PATCH] Makefile: add CC=gcc
-
-
-Upstream-Status: Inappropriate [embedded specific]
-
-Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
----
- plat/nxp/tools/Makefile | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/plat/nxp/tools/Makefile b/plat/nxp/tools/Makefile
-index e648fd1..43d3b56 100644
---- a/plat/nxp/tools/Makefile
-+++ b/plat/nxp/tools/Makefile
-@@ -32,6 +32,7 @@ endif
- INCLUDE_PATHS :=
- HOSTCC ?= gcc
-+CC = gcc
- .PHONY: all clean distclean
--- 
-2.7.4
-
diff --git a/recipes-bsp/atf/atf/0001-fix-fiptool-build-error.patch b/recipes-bsp/atf/atf/0001-fix-fiptool-build-error.patch
deleted file mode 100644 (file)
index ffd9965..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-From a76ae26fdb673613f5f97872b7275c630b7b24b8 Mon Sep 17 00:00:00 2001
-From: BJ DevOps Team <bjdevops@NXP1.onmicrosoft.com>
-Date: Wed, 16 May 2018 13:26:45 +0800
-Subject: [PATCH] fix fiptool build error
-
-Upstream-Status: Inappropriate [embedded specific]
-
----
- tools/fiptool/Makefile | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/tools/fiptool/Makefile b/tools/fiptool/Makefile
-index e0e3923..f213f44 100644
---- a/tools/fiptool/Makefile
-+++ b/tools/fiptool/Makefile
-@@ -19,7 +19,8 @@ ifeq (${DEBUG},1)
- else
-   CFLAGS += -O2
- endif
--LDLIBS := -lcrypto
-+
-+LDLIBS := -Wl,-rpath=${LIBPATH}/usr/lib  -L${LIBPATH}/usr/lib -lcrypto
- ifeq (${V},0)
-   Q := @
--- 
-1.8.3.1
-
index dcc3689aeb24fff14f554ff97acafeca0471664d..a93cb8048684b15eb94b73d52be03b753738a028 100644 (file)
@@ -14,10 +14,6 @@ S = "${WORKDIR}/git"
 SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/atf;nobranch=1"
 SRCREV = "7d748e6f0ec652ba7c43733dc67a3d0b0217390a"
 
-SRC_URI += "file://0001-fix-fiptool-build-error.patch \
-    file://0001-Makefile-add-CC-gcc.patch \
-"
-
 COMPATIBLE_MACHINE = "(qoriq)"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"