Android now uses clang with Werror by default which prevents from
building.
Removing Werror for the current warnings.
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
The PTX flavour canutils[1] have a useful utility for generating a
sequence of CAN frames with an incrementing payload and checking such a
sequence for missed and reordered frames.
Recently, it has helped finding a regression in the kernel pfifo_fast
qdisc, which led to reordered frames[2].
To bring the utility to a greater audience, import the current state[3]
of it into the linux-can set of utilities.
[1]: https://git.pengutronix.de/cgit/tools/canutils
[2]: https://lore.kernel.org/netdev/661cc33a-5f65-2769-cc1a-65791cb4b131@pengutronix.de
[3]: 207a476b5 ("cansequence: print error frames in hex")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
[afa: code by mkl, I removed --version and fixed an off by one in strncpy]
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
In commit
2206f92 canbusload: Add exact CAN frame length calculation (including bitstuffing)
the function to calculate the can_frame_length was moved into a seperate file
(canframelen.c). This patch for the Android makefile adds canframelen.c to the
lib, too and lets canbusload link against the lib.
Tested-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This was added, probably by accident in commit:
103fd96 can-utils: fix local header path for AOSP build
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Add local headers and GCC flags for all can-utils targets.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Use path relative to the can-utils source code and to root of
the AOSP repository.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>