<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-clang.git/dynamic-layers/selinux, branch master</title>
<subtitle>Mirror of github.com/kraj/meta-clang.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-clang.git/atom?h=master</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-clang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/'/>
<updated>2023-03-15T22:25:12+00:00</updated>
<entry>
<title>android-tools: remove recipe and dynamic-layer</title>
<updated>2023-03-15T22:25:12+00:00</updated>
<author>
<name>Etienne Cordonnier</name>
<email>ecordonnier@snap.com</email>
</author>
<published>2023-03-15T16:40:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=0c7dbd7eefd775303e1a29b5466fb9aa3ed4d838'/>
<id>urn:sha1:0c7dbd7eefd775303e1a29b5466fb9aa3ed4d838</id>
<content type='text'>
The recipe has been patched to remove the clang dependency and moved to meta-openembedded at
https://github.com/openembedded/meta-openembedded/tree/master/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools

Signed-off-by: Etienne Cordonnier &lt;ecordonnier@snap.com&gt;
</content>
</entry>
<entry>
<title>android-tools: add adb daemon</title>
<updated>2023-03-08T21:21:20+00:00</updated>
<author>
<name>Etienne Cordonnier</name>
<email>ecordonnier@snap.com</email>
</author>
<published>2023-03-06T10:51:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=87d41f7dd7a69bbf15973506faf113a83bd60511'/>
<id>urn:sha1:87d41f7dd7a69bbf15973506faf113a83bd60511</id>
<content type='text'>
Signed-off-by: Etienne Cordonnier &lt;ecordonnier@snap.com&gt;
</content>
</entry>
<entry>
<title>android-tools: remove bashism</title>
<updated>2023-03-08T21:21:20+00:00</updated>
<author>
<name>Etienne Cordonnier</name>
<email>ecordonnier@snap.com</email>
</author>
<published>2023-03-08T13:46:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=830531155b3561a2520b7548914bacab188595cc'/>
<id>urn:sha1:830531155b3561a2520b7548914bacab188595cc</id>
<content type='text'>
Signed-off-by: Etienne Cordonnier &lt;ecordonnier@snap.com&gt;
</content>
</entry>
<entry>
<title>android-tools: allow removing fastboot from TOOLS_TO_BUILD</title>
<updated>2023-03-08T21:21:20+00:00</updated>
<author>
<name>Etienne Cordonnier</name>
<email>ecordonnier@snap.com</email>
</author>
<published>2023-03-06T10:10:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=585d4452b2fe5fa2c65f21f643a963ea98d74fac'/>
<id>urn:sha1:585d4452b2fe5fa2c65f21f643a963ea98d74fac</id>
<content type='text'>
The fastboot makefile is creating the directory $(OUT_DIR)/usr/bin, so removing
fastboot from TOOLS_TO_BUILD in a bbappend resulted in a build failure
because of the missing directory $(OUT_DIR)/usr/bin.

Signed-off-by: Etienne Cordonnier &lt;ecordonnier@snap.com&gt;
</content>
</entry>
<entry>
<title>android-tools: make it work with devtool</title>
<updated>2023-03-07T23:08:02+00:00</updated>
<author>
<name>Etienne Cordonnier</name>
<email>ecordonnier@snap.com</email>
</author>
<published>2023-03-03T10:26:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=33604a56dc35a04c6b4233f2030cebc60e8dcfe9'/>
<id>urn:sha1:33604a56dc35a04c6b4233f2030cebc60e8dcfe9</id>
<content type='text'>
devtool modify android-tools was failing with an error:

- regenerate patches in the git format working with devtool
- add debian patches to yocto instead of applying them manually with do_unpack_and_patch_debian,
  to make it work with devtool

Signed-off-by: Etienne Cordonnier &lt;ecordonnier@snap.com&gt;
</content>
</entry>
<entry>
<title>android-tools: fix libcrypto_utils link error</title>
<updated>2023-03-06T18:21:29+00:00</updated>
<author>
<name>Etienne Cordonnier</name>
<email>ecordonnier@snap.com</email>
</author>
<published>2023-03-02T13:23:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=398d4bc3805ca1c5cbb845aacccdb8999aabeab4'/>
<id>urn:sha1:398d4bc3805ca1c5cbb845aacccdb8999aabeab4</id>
<content type='text'>
When building android-tools, this chain of dependency pulls the openssl library libcrypto.so.3 in recipe-sysroot:
clang-native -&gt; cmake-native -&gt; curl-native -&gt; openssl-native

The issue is that libcrypto_utils attempt to link against the libcrypto.so produced by boringssl (debian/out/usr/lib/android/libcrypto.so),
but the -L flags added by yocto to CPPFLAGS appear before the -L flag provided in the patch, and therefore the wrong library is used.

Link explicitly against libcrypto.so.0 in order to ignore the openssl library and use boringssl instead.

Note: to debug this add -Wl,--verbose to LDFLAGS

Signed-off-by: Etienne Cordonnier &lt;ecordonnier@snap.com&gt;
</content>
</entry>
<entry>
<title>android-tools: make native version compile</title>
<updated>2023-03-06T18:21:29+00:00</updated>
<author>
<name>Etienne Cordonnier</name>
<email>ecordonnier@snap.com</email>
</author>
<published>2023-03-02T12:02:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=39b89bbffe9e21bb2db5b2733b1f56610b6cdb45'/>
<id>urn:sha1:39b89bbffe9e21bb2db5b2733b1f56610b6cdb45</id>
<content type='text'>
Those 2 warnings (caused by the combination of -nostdlib and the options added by meta-clang) were treated as errors:

"""
clang-14: warning: argument unused during compilation: '-rtlib=libgcc' [-Wunused-command-line-argument]
clang-14: warning: argument unused during compilation: '--unwindlib=libgcc' [-Wunused-command-line-argument]
"""

Signed-off-by: Etienne Cordonnier &lt;ecordonnier@snap.com&gt;
</content>
</entry>
<entry>
<title>android-tools-conf: fix typo</title>
<updated>2023-03-06T18:21:29+00:00</updated>
<author>
<name>Etienne Cordonnier</name>
<email>ecordonnier@snap.com</email>
</author>
<published>2023-03-02T12:00:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=8130689443cb031a41a45621d5abab5c762fc6e7'/>
<id>urn:sha1:8130689443cb031a41a45621d5abab5c762fc6e7</id>
<content type='text'>
Signed-off-by: Etienne Cordonnier &lt;ecordonnier@snap.com&gt;
</content>
</entry>
<entry>
<title>android-tools-conf: remove PACKAGE_ARCH = MACHINE_ARCH</title>
<updated>2023-03-06T18:21:29+00:00</updated>
<author>
<name>Etienne Cordonnier</name>
<email>ecordonnier@snap.com</email>
</author>
<published>2023-03-02T11:59:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=282e2ce27d4fa3d5a235365fb327cfa623fdf4b6'/>
<id>urn:sha1:282e2ce27d4fa3d5a235365fb327cfa623fdf4b6</id>
<content type='text'>
android-tools inherits the native class, and RDEPENDS on android-tools-conf.
This line causes an error when trying to build android-tools-native:

"""
ERROR: Required build target 'android-tools-native' has no buildable providers.
Missing or unbuildable dependency chain was: ['android-tools-native', 'clang-native-x86_64']
"""

Signed-off-by: Etienne Cordonnier &lt;ecordonnier@snap.com&gt;
</content>
</entry>
<entry>
<title>android-tools: fix incremental builds by using ln -sf</title>
<updated>2023-03-06T18:21:29+00:00</updated>
<author>
<name>Etienne Cordonnier</name>
<email>ecordonnier@snap.com</email>
</author>
<published>2023-03-02T11:01:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=9e2fc3d078c8568abb524e3e1f38a21c0f97c4da'/>
<id>urn:sha1:9e2fc3d078c8568abb524e3e1f38a21c0f97c4da</id>
<content type='text'>
This avoids an error about the file already existing when debugging the recipe
and starting incremental builds.

Signed-off-by: Etienne Cordonnier &lt;ecordonnier@snap.com&gt;
</content>
</entry>
</feed>
