Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vc04_services: add CONFIG_COMPILE_TEST ability

It would be nice to be able to build this code on other platforms other
than only the RPi, so add some empty macros to allow this to happen, and
turn off BROKEN as the code can now build properly thanks to Michael's
work.

Cc: Michael Zoran <mzoran@crowfest.net>
Cc: Daniel Stone <daniels@collabora.com>
Cc: "Noralf Trønnes" <noralf@tronnes.org>
Cc: Pranith Kumar <bobby.prani@gmail.com>
Cc: popcornmix <popcornmix@gmail.com>
Cc: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+12 -1
+1 -1
drivers/staging/vc04_services/Kconfig
··· 1 1 config BCM2835_VCHIQ 2 2 tristate "Videocore VCHIQ" 3 - depends on RASPBERRYPI_FIRMWARE && BROKEN 3 + depends on RASPBERRYPI_FIRMWARE || COMPILE_TEST 4 4 default y 5 5 help 6 6 Kernel to VideoCore communication interface for the
+11
drivers/staging/vc04_services/interface/vchiq_arm/vchiq.h
··· 37 37 #include "vchiq_if.h" 38 38 #include "vchiq_util.h" 39 39 40 + /* Do this so that we can test-build the code on non-rpi systems */ 41 + #if IS_ENABLED(CONFIG_RASPBERRYPI_FIRMWARE) 42 + 43 + #else 44 + 45 + #ifndef dsb 46 + #define dsb(a) 47 + #endif 48 + 49 + #endif /* IS_ENABLED(CONFIG_RASPBERRYPI_FIRMWARE) */ 50 + 40 51 #endif