Errors like this one:
make: *** No rule to make target 'driver/charger/bd99955.h', needed by 'build/gru/RO/board/gru/board.o'. Stop.
Often seen when doing incremental EC builds (particularly in the private overlays, but not only).
For example:
rm -rf build/gru
git checkout 420b42309^
make BOARD=gru -j
git checkout m/master # e.g. 5e5788f3c
make BOARD=gru -j
...
BUILDCC util/usb_pd_policy.o
LDS RO/ec.RO.lds
make: *** No rule to make target 'driver/charger/bd99955.h', needed by 'build/gru/RO/board/gru/board.o'. Stop.
make: *** Waiting for unfinished jobs....
VERSION ec_version.h
The workaround is obvious: remove build/gru (or the whole build/ folder) and start over, but it gets a bit painful when having to do that often on many boards, especially when the purpose is just to to make buildall -j to sanity-check a CL before submitting, after a rebase.
Comment 1 by vpalatin@google.com
, Jul 3 2017