Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
From c1359a49b61016031287d62f44a363cb76242c91 Mon Sep 17 00:00:00 2001
|
||||
From: Matt Weber <matthew.weber@rockwellcollins.com>
|
||||
Date: Sat, 26 Oct 2019 09:17:29 -0500
|
||||
Subject: [PATCH] Prefer ext static libs when --default-library=static
|
||||
|
||||
This patch adds a case in the library pattern logic to prefer static
|
||||
libraries when the Meson Core option for "default_library" is set to
|
||||
solely static.
|
||||
|
||||
The existing library search order makes sense for cases of shared and
|
||||
shared / static mixed. However if using a prebuilt cross-toolchain,
|
||||
they usually provide both a static and shared version of sysroot
|
||||
libraries. This presents a problem in a complete static build where
|
||||
there won't be shared libraries at runtime and during build time there
|
||||
are failures like "ld: attempted static link of dynamic object".
|
||||
|
||||
Bug:
|
||||
https://github.com/mesonbuild/meson/issues/6108
|
||||
|
||||
Fixes:
|
||||
http://autobuild.buildroot.net/results/db1740b4777f436324218c52bc7b08e5c21b667d/
|
||||
http://autobuild.buildroot.net/results/c17/c17bbb12d9deadd64a441b36e324cfbbe8aba5be/
|
||||
|
||||
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
|
||||
[Updated for 0.57.1 - get_builtin_option() vs. get_option(OptionKey())]
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
[Bernd: rebased for 1.10.0]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
mesonbuild/compilers/mixins/clike.py | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py
|
||||
index 09ad837b1..b7f6b9f22 100644
|
||||
--- a/mesonbuild/compilers/mixins/clike.py
|
||||
+++ b/mesonbuild/compilers/mixins/clike.py
|
||||
@@ -27,6 +27,7 @@
|
||||
from ... import mlog
|
||||
from ...linkers.linkers import GnuLikeDynamicLinkerMixin, SolarisDynamicLinker, CompCertDynamicLinker
|
||||
from ...mesonlib import LibType
|
||||
+from ...options import OptionKey
|
||||
from .. import compilers
|
||||
from ..compilers import CompileCheckMode
|
||||
from .visualstudio import VisualStudioLikeCompiler
|
||||
@@ -1045,6 +1046,9 @@ class CLikeCompiler(Compiler):
|
||||
# TI C28x compilers can use both extensions for static or dynamic libs.
|
||||
stlibext = ['a', 'lib']
|
||||
shlibext = ['dll', 'so']
|
||||
+ elif self.environment.coredata.optstore.get_value_for(OptionKey('default_library')) == 'static':
|
||||
+ # Linux/BSDs
|
||||
+ shlibext = ['a']
|
||||
elif self.info.is_os2():
|
||||
stlibext = ['_s.lib', '_s.a', 'lib', 'a']
|
||||
shlibext = ['_dll.lib', '_dll.a', 'lib', 'a', 'dll']
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
From 59934e2116e025ecfe23baf6febc4a0eb85f60cd Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sat, 15 Feb 2020 15:13:59 +0100
|
||||
Subject: [PATCH] mesonbuild/dependencies/base.py: add pkg_config_static
|
||||
|
||||
Allow the user to always call pkg-config with --static thanks to a
|
||||
pkg_config_static property. This will allow to fix static build failures
|
||||
with libglib2:
|
||||
|
||||
FAILED: gio/gio
|
||||
/home/naourr/work/instance-0/output-1/host/bin/arm-linux-gcc -o gio/gio 'gio/6ae6c9e@@gio@exe/gio-tool.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-cat.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-copy.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-info.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-list.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-mime.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-mkdir.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-monitor.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-mount.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-move.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-open.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-rename.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-remove.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-save.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-set.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-trash.c.o' 'gio/6ae6c9e@@gio@exe/gio-tool-tree.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -static -Wl,--start-group gio/libgio-2.0.a glib/libglib-2.0.a gobject/libgobject-2.0.a gmodule/libgmodule-2.0.a -pthread /home/naourr/work/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libz.a /home/naourr/work/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libmount.a /home/naourr/work/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libpcre.a -lm /home/naourr/work/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libffi.a -Wl,--end-group '-Wl,-rpath,$ORIGIN/:$ORIGIN/../glib:$ORIGIN/../gobject:$ORIGIN/../gmodule' -Wl,-rpath-link,/home/naourr/work/instance-0/output-1/build/libglib2-2.62.4/build/gio -Wl,-rpath-link,/home/naourr/work/instance-0/output-1/build/libglib2-2.62.4/build/glib -Wl,-rpath-link,/home/naourr/work/instance-0/output-1/build/libglib2-2.62.4/build/gobject -Wl,-rpath-link,/home/naourr/work/instance-0/output-1/build/libglib2-2.62.4/build/gmodule
|
||||
/home/naourr/work/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: /home/naourr/work/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libmount.a(la-fs.o): in function `__mnt_fs_set_source_ptr':
|
||||
fs.c:(.text+0x5ec): undefined reference to `blkid_parse_tag_string'
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/0d36952def63cb69628697fa6408aeb6ce10cb5b
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Romain: Fix if condition, pkg_config_static is a string not a boolean]
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
[Rebased on 0.57.1]
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
[rebased on 1.3.0]
|
||||
Signed-off-by: Antoine Coutant <antoine.coutant@smile.fr>
|
||||
---
|
||||
mesonbuild/dependencies/pkgconfig.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/mesonbuild/dependencies/pkgconfig.py b/mesonbuild/dependencies/pkgconfig.py
|
||||
index e86206b88..94888657d 100644
|
||||
--- a/mesonbuild/dependencies/pkgconfig.py
|
||||
+++ b/mesonbuild/dependencies/pkgconfig.py
|
||||
@@ -170,7 +170,8 @@ class PkgConfigCLI(PkgConfigInterface):
|
||||
env['PKG_CONFIG_ALLOW_SYSTEM_LIBS'] = '1'
|
||||
args: T.List[str] = []
|
||||
args += self._define_variable_args(define_variable)
|
||||
- if static:
|
||||
+ if static or \
|
||||
+ (self.env.properties[self.for_machine].get('pkg_config_static', None) == 'true'):
|
||||
args.append('--static')
|
||||
args += ['--libs', name]
|
||||
ret, out, err = self._call_pkgbin(args, env=env)
|
||||
--
|
||||
2.25.1
|
||||
|
||||
4
package/meson/meson.hash
Normal file
4
package/meson/meson.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://github.com/mesonbuild/meson/releases/tag/1.11.1
|
||||
sha256 6788ae299979643f8d841bcaf64352558436cae45a0355148a3aeeccf7913866 meson-1.11.1.tar.gz
|
||||
# Locally computed
|
||||
sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 COPYING
|
||||
21
package/meson/meson.mk
Normal file
21
package/meson/meson.mk
Normal file
@@ -0,0 +1,21 @@
|
||||
################################################################################
|
||||
#
|
||||
# meson
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MESON_VERSION = 1.11.1
|
||||
MESON_SITE = https://github.com/mesonbuild/meson/releases/download/$(MESON_VERSION)
|
||||
MESON_LICENSE = Apache-2.0
|
||||
MESON_LICENSE_FILES = COPYING
|
||||
MESON_SETUP_TYPE = setuptools
|
||||
|
||||
HOST_MESON_DEPENDENCIES = host-ninja
|
||||
|
||||
# Avoid interpreter shebang longer than 128 chars
|
||||
define HOST_MESON_SET_INTERPRETER
|
||||
$(SED) '1s:.*:#!/usr/bin/env python3:' $(HOST_DIR)/bin/meson
|
||||
endef
|
||||
HOST_MESON_POST_INSTALL_HOOKS += HOST_MESON_SET_INTERPRETER
|
||||
|
||||
$(eval $(host-python-package))
|
||||
Reference in New Issue
Block a user