Age | Commit message (Collapse) | Author |
|
am: fa3d2c209c -s ours
am skip reason: subject contains skip directive
Change-Id: I22ab951a4f105f09e40c39e4028a237870fe22c2
|
|
Bug: 120848293
Change-Id: I909b455f1b1e142601a37c76d335024b79835f9e
|
|
am: 3c8c7a5a87
Change-Id: I845049217a4f5c3b2214524c026285609371b116
|
|
am: 25f4bc400d
Change-Id: I6d0c85d11fc1d2d34535d9a955767fddd97b0155
|
|
am: d2b640aa88
Change-Id: Iaada3398f8c2cbfaa28a445400349fccd30de4f8
|
|
Bug: 33166666
Test: gerrit uploader
Change-Id: Ib181a520ee3c688e2915f7d11e50c59650890fa5
|
|
ours
am: 41fb9d9954 -s ours
Change-Id: I9394c1ea79ca4ad67a0b79b9bf8aed11ca03c8a8
|
|
am: 37e13d9079 -s ours
Change-Id: Ib25f5a867c31444499a28f737163256b26a0ba98
|
|
am: 0be0d1548f -s ours
Change-Id: I4d2b48b9312e61677195893636eb73b87c151d07
|
|
Merge pie-platform-release (PPRL.181205.001, history only) into master
Bug: 120502534
Change-Id: I68803f82bae399efe4e0f73ebe39392bc86e0622
|
|
am: 1f1c0bbdaa
Change-Id: I0d0b46a4886864eb00525d1db77ae139518499cb
|
|
am: fb83f6ed63
Change-Id: Ie543f9364e33ae686df4c3a4221d5b4cd4a318c3
|
|
am: cf981a4daf
Change-Id: I059fae3fff9df6641c627550e10cf93334f67418
|
|
See build/soong/README.md for more information.
Test: cd external/rootdev; mma
Change-Id: Ie3ff9e17dd6e6a1c5aeb34f7c3dc495abd054878
|
|
Change-Id: Id26e41ab99e8997b34b724d5a4ea021044893bc7
|
|
am: 0a689ba13c
Change-Id: Ib400bdb444735e82bbf2be075970fa074411e586
|
|
am: 7140fac67e
Change-Id: I4a7e831463f78612d3a8538e293d4f87d8ff894a
|
|
am: 83dfa81a44
Change-Id: I8742bc09a427bc9ba04299bed9dc0f984727960e
|
|
Bug: http://b/32678321
Test: builds, boots
Change-Id: Iaaca5175180c6a7ff9f29b57c09f82a5de6084b3
|
|
172 snap-temp-L25600000101152760
Change-Id: I8a855b83a093518e86c80641009c23c50b92d3a3
|
|
am: d711c85ebc
Change-Id: Ie100e97a67ba8ea4342d316adf8f00b6d725081b
|
|
am: 330f91991f
Change-Id: I6867a57528c855524b1cf3c23fee6af053abddc2
|
|
am: 857775eb36
Change-Id: Ibd1cbd6d5336ab88d74711857d488ec7de513ef4
|
|
am: 6fab99202f
Change-Id: Ie66e71982729eea03dbe5b7e08b78f8175dcc140
|
|
clang is the default compiler since Android nougat
Change-Id: I47596de30f31e44bf822c4f5d4ee11aa94c735a1
Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
|
|
1dd6771e0f am: 134977ffc3 am: c0b5e4fcf3
am: ac440d6d70
Change-Id: I7540fb61e00d548514f946a98aecbabef53019d0
|
|
1dd6771e0f am: 134977ffc3
am: c0b5e4fcf3
Change-Id: Idc94343486078025f9441de5ea210eaa846d77b4
|
|
1dd6771e0f
am: 134977ffc3
Change-Id: I370b793e85e0ee09cb814e13c0c1574b0b214505
|
|
am: 1dd6771e0f
Change-Id: I11ca7a8202b9b451b586e078accc50be6398d134
|
|
I'm not sure where (if anywhere) is upstream here, so modifying our makefile
rather than the source.
Bug: https://github.com/android-ndk/ndk/issues/398
Test: builds
Change-Id: I2690bbba6c4ac98c957f780e9b9625e8690052f8
|
|
am: 1fe2b737ad
Change-Id: I14c4bb4494b6d7eb991bed9a1b79b5f5aaa0c01e
|
|
am: cd960ab4e9
Change-Id: Idcd9339737c2f1102b31def80a2045603470c69e
|
|
am: 425c5485df
Change-Id: Ifcd033cd4f29d45ca308a32f835c5481494657ef
|
|
am: f2233f4546
Change-Id: I994fd18a84073d6f3d928141e032839abde43dcb
|
|
In Android, "CPPFLAGS" are only for C++, so these weren't getting used.
Change-Id: I773e380a150ec11a0405c3e65d020fb901d9d076
|
|
When the device used to back a path is found in /sys/block, rootdev will
double check that /dev/block/<device name> exists and that the dev_t
matches the one in /sys/block/.
On Android, the manufacturer can add an SELinux context for that device
node which will prevent core daemons from accessing it, failing the call
to rootdev.
To avoid this, rootdev should return the device node path without trying
to access it.
This CL also enable building with Clang to ensure we use the strictest
compiler possible.
BUG: 24143423
BUG: 24267261
TEST: metricsd starts and find the main disk without any SELinux denial.
TEST: builds with clang and -Werror.
Change-Id: Icfe64695c28277d4c8eb9c89de1e13a767a703b8
|
|
This breaks when built with clang
This reverts commit 4a2bdd8006a5ddf166bcc8973c135799da453e09.
Change-Id: I2f89a9c19de91d4c46dce110e36a32551134e5d5
|
|
When the device used to back a path is found in /sys/block, rootdev will
double check that /dev/block/<device name> exists and that the dev_t
matches the one in /sys/block/.
On Android, the manufacturer can add an SELinux context for that device
node which will prevent core daemons from accessing it, failing the call
to rootdev.
To avoid this, rootdev should return the device node path without trying
to access it.
BUG: 24143423
BUG: 24267261
TEST: metricsd starts and find the main disk without any SELinux denial.
Change-Id: I4c0fb2800ac84ff451974990c6228ee10528c0f0
|
|
BUG: 22953719
Change-Id: Ie7d9ff703e50210e1b6a1ab8bd7f52ae6a6e46f7
|
|
BUG: 22953719
Change-Id: I04cea1655d85f988b8c803047b08bd19c7e19cdc
|
|
Without LFS, stat fails with -EOVERFLOW on devices with major:minor
numbers that don't fit within 8 bits on 32-bit architecutres. This
patch turns on LFS to allow that, fixing a bringup but on a new
platform.
BUG=chromium:464024
TEST=Booted onto a machine and successfully ran rootdev with a large
major:minor number.
Change-Id: I3dfe698e65366f4608705f56894988d2643e375f
Signed-off-by: Dan Ehrenberg <dehrenberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/258550
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
|
|
The current code requires rootdev to be in $PWD which fails when we
build out of tree (like the ebuild).
BUG=chromium:441571
TEST=`FEATURES=test emerge-link rootdev` passes
Change-Id: I99173ceb557099c20b43f5a31b87107a144efa20
Reviewed-on: https://chromium-review.googlesource.com/234921
Trybot-Ready: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Yunlian Jiang <yunlian@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
|
|
The rootdev program was printing the path buffer even when the library
call failed. In that case, the buffer most likely is uninitialized.
Make sure we seed it with a NUL byte so it's always valid.
BUG=chromium:441571
TEST=`FEATURES=test emerge-link rootdev` passes
Change-Id: I00d334376de9bedee0a3fac3b1a74e48237c06b7
Reviewed-on: https://chromium-review.googlesource.com/234920
Trybot-Ready: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Yunlian Jiang <yunlian@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
|
|
If the system's stat buffer is broken and doesn't declare st_dev as a
dev_t, we hit a build failure when we try to pass it into a func that
expects a dev_t.
Add some checks to handle this case. It produces the same code on sane
ABIs, so other than ugliness, it should be fine.
BUG=chromium:358419
TEST=`emerge-link rootdev` produces same code
TEST=`emerge-daisy rootdev` produces same code
TEST=`emerge-mipsel-o32-generic rootdev` now works
Change-Id: I956436e0c40318c8f2ac61b2e202ec739132c245
Reviewed-on: https://chromium-review.googlesource.com/192550
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
|
|
Make sure we respect CPPFLAGS and don't hardcode
BUG=None
TEST=`emerge-x86-alex rootdev` uses right flags
Change-Id: I668af9e02b842ddc54f60e07d313a564cc927413
Reviewed-on: https://chromium-review.googlesource.com/175522
Reviewed-by: Liam McLoughlin <lmcloughlin@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
|
|
We create a lib out of rootdev.c, so have our main program use it rather
than duplicate the code in the main program.
BUG=None
TEST=`emerge-x86-alex rootdev` still works and rootdev is linked against the prog (and works)
Change-Id: If649007ddb9499f2217ad0af3f1d30115587dd3d
Reviewed-on: https://chromium-review.googlesource.com/175521
Reviewed-by: Liam McLoughlin <lmcloughlin@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
|
|
This will allow us to avoid doing a git clone.
BUG=None
TEST=`emerge-x86-alex rootdev` still works
Change-Id: I2515981c5aa426eebecc6333d8ae7b50276ae577
Reviewed-on: https://chromium-review.googlesource.com/175520
Reviewed-by: Liam McLoughlin <lmcloughlin@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
|
|
Some toolchains are confused by have a local variable with the same
name as a function. FIXIT!
BUG=None
TEST=compilashunz
Change-Id: Id7befbcfc9c2cbcd14f4a229cbc8687e1f7ad72c
Reviewed-on: https://gerrit.chromium.org/gerrit/66294
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Chris Masone <cmasone@chromium.org>
|
|
The intent of the rootdev_get_device_slave is to allow the slave and
the device to be the same string but it is not required. Added a
test for the case where they are the same string to not do the
strncpy.
Linux has vixed the problem of a limited number of stacked devices,
so I fixed the comment that referred to it.
BUG=chromium:259893
TEST=rootdev -s
Change-Id: I04d84799e77c678f1330e1bcf72cddaf9ac68c4c
Reviewed-on: https://gerrit.chromium.org/gerrit/61707
Tested-by: Paul Taysom <taysom@chromium.org>
Reviewed-by: Yunlian Jiang <yunlian@chromium.org>
Commit-Queue: Paul Taysom <taysom@chromium.org>
|
|
Rootdev only went down one level when traversing the device tree.
With the addition of the bootcache device mapper, we need to
go multiple levels for the -s option for rootdev.
BUG=chromium-os:25441
TEST=used it with bootcache to find boot device.
Change-Id: Ica82dc150e403d0e49e4d8074c0b920b20e4cccc
Reviewed-on: https://gerrit.chromium.org/gerrit/31851
Commit-Ready: Paul Taysom <taysom@chromium.org>
Reviewed-by: Paul Taysom <taysom@chromium.org>
Tested-by: Paul Taysom <taysom@chromium.org>
|