diff options
| author | Ross Burton <ross@burtonini.com> | 2021-11-12 14:02:33 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-13 16:11:27 +0000 |
| commit | cf9782c18a85b4d3adcf813cf0dfe122b7011b52 (patch) | |
| tree | cf38f14c6ae74edabb7aa053736a63302a4c655c | |
| parent | ca02d0786947d9e245a3c9500333bc05809d8464 (diff) | |
| download | poky-cf9782c18a85b4d3adcf813cf0dfe122b7011b52.tar.gz | |
dtc: use Meson to build
(From OE-Core rev: f8f25c424079074b9ed4a7801122c2f59f22aacf)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 files changed, 4 insertions, 73 deletions
diff --git a/meta/recipes-kernel/dtc/dtc/0001-dtc-Fix-Makefile-to-add-CFLAGS-not-override.patch b/meta/recipes-kernel/dtc/dtc/0001-dtc-Fix-Makefile-to-add-CFLAGS-not-override.patch deleted file mode 100644 index a2deb12d4b..0000000000 --- a/meta/recipes-kernel/dtc/dtc/0001-dtc-Fix-Makefile-to-add-CFLAGS-not-override.patch +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | From f0119060ef1b9bd80e2cae487df1e4aedffb0e9b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Oleksiy Obitotskyy <oobitots@cisco.com> | ||
| 3 | Date: Fri, 22 Jan 2021 09:12:48 +0200 | ||
| 4 | Subject: [PATCH] dtc: Fix Makefile to add CFLAGS not override | ||
| 5 | |||
| 6 | Makefile override CFLAGS not extend them, so some of them | ||
| 7 | missing. Sources builds out of kernel tree and probably not all | ||
| 8 | options could be used (?). We need at least -fmacro-prefix-map/ | ||
| 9 | debug-prefix-map to eliminate absolute path in binaries. | ||
| 10 | |||
| 11 | Upstream-Status: Pending | ||
| 12 | Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> | ||
| 13 | --- | ||
| 14 | Makefile | 4 ++-- | ||
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/Makefile b/Makefile | ||
| 18 | index 35d936f..b5b13cf 100644 | ||
| 19 | --- a/Makefile | ||
| 20 | +++ b/Makefile | ||
| 21 | @@ -20,10 +20,10 @@ CONFIG_LOCALVERSION = | ||
| 22 | # See libfdt_internal.h for details | ||
| 23 | ASSUME_MASK ?= 0 | ||
| 24 | |||
| 25 | -CPPFLAGS = -I libfdt -I . -DFDT_ASSUME_MASK=$(ASSUME_MASK) | ||
| 26 | +CPPFLAGS += -I libfdt -I . -DFDT_ASSUME_MASK=$(ASSUME_MASK) | ||
| 27 | WARNINGS = -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \ | ||
| 28 | -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow | ||
| 29 | -CFLAGS = -g -Os $(SHAREDLIB_CFLAGS) -Werror $(WARNINGS) $(EXTRA_CFLAGS) | ||
| 30 | +CFLAGS += -g -Os $(SHAREDLIB_CFLAGS) -Werror $(WARNINGS) $(EXTRA_CFLAGS) | ||
| 31 | |||
| 32 | BISON = bison | ||
| 33 | LEX = flex | ||
| 34 | -- | ||
| 35 | 2.25.1 | ||
| 36 | |||
diff --git a/meta/recipes-kernel/dtc/dtc/make_install.patch b/meta/recipes-kernel/dtc/dtc/make_install.patch deleted file mode 100644 index ea9359e815..0000000000 --- a/meta/recipes-kernel/dtc/dtc/make_install.patch +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | From e9852b9d206df1e42aa4c8afec55a0f5e099b533 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Saul Wold <sgw@linux.intel.com> | ||
| 3 | Date: Thu, 3 Nov 2011 08:35:47 -0700 | ||
| 4 | Subject: [PATCH] dtc: Add patch to correctly install shared libraries and | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [configuration] | ||
| 7 | |||
| 8 | --- | ||
| 9 | Makefile | 4 ++-- | ||
| 10 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 11 | |||
| 12 | diff --git a/Makefile b/Makefile | ||
| 13 | index d8ebc4f..f5e01be 100644 | ||
| 14 | --- a/Makefile | ||
| 15 | +++ b/Makefile | ||
| 16 | @@ -205,8 +205,8 @@ install-bin: all $(SCRIPTS) | ||
| 17 | install-lib: all | ||
| 18 | @$(VECHO) INSTALL-LIB | ||
| 19 | $(INSTALL) -d $(DESTDIR)$(LIBDIR) | ||
| 20 | - $(INSTALL_LIB) $(LIBFDT_lib) $(DESTDIR)$(LIBDIR) | ||
| 21 | - ln -sf $(notdir $(LIBFDT_lib)) $(DESTDIR)$(LIBDIR)/$(LIBFDT_soname) | ||
| 22 | + $(INSTALL) $(LIBFDT_lib) $(DESTDIR)$(LIBDIR)/$(LIBFDT_soname) | ||
| 23 | + ln -sf $(LIBFDT_soname) $(DESTDIR)$(LIBDIR)/$(notdir $(LIBFDT_lib)) | ||
| 24 | ln -sf $(LIBFDT_soname) $(DESTDIR)$(LIBDIR)/libfdt.$(SHAREDLIB_EXT) | ||
| 25 | $(INSTALL_DATA) $(LIBFDT_archive) $(DESTDIR)$(LIBDIR) | ||
| 26 | |||
diff --git a/meta/recipes-kernel/dtc/dtc_1.6.1.bb b/meta/recipes-kernel/dtc/dtc_1.6.1.bb index 979b610576..44293cf4ff 100644 --- a/meta/recipes-kernel/dtc/dtc_1.6.1.bb +++ b/meta/recipes-kernel/dtc/dtc_1.6.1.bb | |||
| @@ -8,23 +8,16 @@ DEPENDS = "flex-native bison-native" | |||
| 8 | LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 8 | LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 9 | file://libfdt/libfdt.h;beginline=4;endline=7;md5=05bb357cfb75cae7d2b01d2ee8d76407" | 9 | file://libfdt/libfdt.h;beginline=4;endline=7;md5=05bb357cfb75cae7d2b01d2ee8d76407" |
| 10 | 10 | ||
| 11 | SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git;branch=master \ | 11 | SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git;branch=master" |
| 12 | file://make_install.patch \ | ||
| 13 | file://0001-dtc-Fix-Makefile-to-add-CFLAGS-not-override.patch \ | ||
| 14 | " | ||
| 15 | SRCREV = "b6910bec11614980a21e46fbccc35934b671bd81" | 12 | SRCREV = "b6910bec11614980a21e46fbccc35934b671bd81" |
| 16 | 13 | ||
| 17 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" | 14 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" |
| 18 | 15 | ||
| 19 | EXTRA_OEMAKE='NO_PYTHON=1 PREFIX="${prefix}" LIBDIR="${libdir}" DESTDIR="${D}"' | ||
| 20 | |||
| 21 | inherit pkgconfig | ||
| 22 | |||
| 23 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
| 24 | 17 | ||
| 25 | do_install () { | 18 | inherit meson pkgconfig |
| 26 | oe_runmake install | 19 | |
| 27 | } | 20 | EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled" |
| 28 | 21 | ||
| 29 | PACKAGES =+ "${PN}-misc" | 22 | PACKAGES =+ "${PN}-misc" |
| 30 | FILES:${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff" | 23 | FILES:${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff" |
