These toys are useful to inspect extended attributes, such as
security.sehash. They are already being built, simply add the symlinks.
Test: build, boot and `adb shell getfattr`
Change-Id: Ie3064ae5b07b37036d6a4ab63825f0f0e1a7c30a
We're bumping the default deployment version up to 10.14, so this is no longer increasing the minimum.
Bug: 191879468
Change-Id: Ibba6cf5f4ff3a18e6f648a3a8d4ab232e86d1742
Rather than wait until dynamic libz causes trouble, just go straight to
the more hermetic choice...
Test: treehugger
Change-Id: Ib272fb0cce4e6657cd309259816b78725f1e5ab0
We were seeing crashes with both /lib/x86_64-linux-gnu/libcrypto.so.1.1
and our hermetic /home/enh_google_com/bin/../lib64/libcrypto-host.so in
the stack trace. Let's just take one of those (and preferably, "our
one"!)...
Bug: http://b/307849291
Test: `./toybox id` on an affected host
Change-Id: I6da2c8b0a911ddb2c3ecf3fc8c40e16ee65265d4
The test infrastructure understands the output from gtests, but can
only handle a single pass/fail status from an sh_test. Add a cc_test
that dynamically registers each tests/*.test file as a gtest that then
execs the toybox test shell scripts.
Test: atest toybox-gtests
Change-Id: I00de1bd3dd48724998866bcd17fe05597f351b50
We only need this for kernel builds (and it's probably a bad idea in
general), so I've only enabled it for linux hosts for now.
Bug: http://b/289137454
Test: treehugger
Change-Id: Id3d166c54edc299fcf61e52e703e7bd1116fb566
It's very unfinished, but it's usable in a pinch, and we've had a few
requests to just have the symlink anyway.
Bug: http://b/258420715
Test: treehugger
Change-Id: I9d744eb2b94ffe35d0d74fbbd8d4e7b94ddba526
For convenience, builds against musl libc currently use the
linux_glibc properties because they are almost always linux-specific
and not glibc-specific. In preparation for removing this hack,
tweak the linux_glibc properties by either moving them to host_linux,
which will apply to linux_glibc, linux_musl and linux_bionic, or
by setting appropriate musl or linux_musl properties. Properties
that must not be repeated while musl uses linux_musl and also still
uses the linux_glibc properties are moved to glibc properties, which
don't apply to musl. Whether these stay as glibc properties or get
moved back to linux_glibc later once the musl hack is removed is TBD.
Bug: 223257095
Test: m checkbuild
Test: m USE_HOST_MUSL=true host-native
Change-Id: Icaf82930ccb8c49d84938d627a8df0f8684a9444
This reverts commit c135e01052, but adds the now-necessary `-Wl,-dead_strip` to the Darwin linker flags.
Test: treehugger
Change-Id: Ie75d29692c4aaf51d84a2ba148d62cbc176c8610
After adding "toybox" to cvd-host_package.tar.gz,
aosp_cf_arm64_phone-userdebug failed to build with error:
In file included from external/toybox/lib/args.c:10:
external/toybox/toys.h:8:10: fatal error: 'generated/config.h' file
not found
#include "generated/config.h"
^~~~~~~~~~~~~~~~~~~~
1 error generated.
This is because toybox is not configured to be built on linux_bionic
host, and aosp_cf_arm64_phone is trying to build the HOST_CROSS variant
of toybox, which is arm64 linux_bionic.
Bug: 185883642
Test: lunch aosp_cf_arm64_phone-userdebug && m
Change-Id: I64418fb5f88f8a8b8b7e6905b58cc1f7e68ab2e8
Stop confusing the licensing tool which then thinks that our Apache-2.0
trumps the upstream project's 0BSD.
Test: N/A
Change-Id: I07c8c66a15fb905d326e9ba6bd3165efff5cbcea
Revert submission 1255204
Reason for revert: breaks 32-bit devices
Reverted Changes:
I6027d726c:Merge remote-tracking branch 'toybox/master' into ...
Iff2e13471:vi: Rearrange functions, add o, O, I
I7bfa7e874:More shell tests.
Ica950bdc2:Fix a couple of shell tests.
I952b01a4e:Snapshot of variable resolution implementation. No...
I2cc427c3b:readelf: various fixes.
I6aef1e29d:Park Ju Hyung pointed out the fast path of fdlengt...
I4793780e9:Work around gcc trying to be "helpful" again.
I377462ccf:Merge realpath into readlink, use xabspath() inste...
I337089770:Switch to FLAG() macros.
I7edf4c55d:Update the LP64 section.
I46473d568:Say command name before test result with txpect to...
I48e9a1647:Check that cross compiler is there, not linker, be...
I649d16d1e:Move "scripts/cross.sh all" log files into root/lo...
I09b319fe2:More cross.sh tweaks.
I6deda1c06:Remove another command sub-option.
I0d0a482e8:Fix 'for i in one two three; do echo =$i=; done'
I9179c493f:Yet more shell tests.
I87c8778ad:cp: fix -D (--parents) (REWORK MINIMAL FIX)
Ic631d7c4c:Next round of shell plumbing: variable expansion w...
I7e8fbed1e:modinfo: various fixes.
I398780141:Fix Mac build.
Change-Id: I6090ec471899566c4f869fdff486f2bb9ce48b4f
I'm not sure this is ready for a symlink yet, but it is usable, and it's
the best editor we have available, and I have a long-outstanding bug
requesting vi that the machines are nagging me about.
Notably missing last time I used this vi: ZZ (have to :wq) and R/r (have
to insert and delete separately). But I did manage to make the edit
without using adb pull/push and editing on the host, so...
Bug: http://b/110170945
Change-Id: I0d400e5a52b07f3161d1be4c414480e84108ee35