staging: vc04_services: add CONFIG_COMPILE_TEST ability
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Oct 2016 10:05:14 +0000 (12:05 +0200)
committerJaechul Lee <jcsing.lee@samsung.com>
Fri, 18 Aug 2017 01:04:49 +0000 (10:04 +0900)
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.

Change-Id: I0a2a13332f5da2fd4072258e5c35ee99956f0b88
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>
drivers/staging/vc04_services/Kconfig
drivers/staging/vc04_services/interface/vchiq_arm/vchiq.h

index 2b199c68a9da3349bea75326bdb77004272d93ee..660dcedc282075d67d5978cc3d91caccaefd4a58 100644 (file)
@@ -1,6 +1,6 @@
 config BCM2835_VCHIQ
        tristate "Videocore VCHIQ"
-       depends on RASPBERRYPI_FIRMWARE
+       depends on RASPBERRYPI_FIRMWARE || COMPILE_TEST
        default y
        help
                Kernel to VideoCore communication interface for the
index ad398bae6ee4c3d64fc1a37808398397a9a0fefe..21adf89a9065eb311c2fcdf4782062b82cd75669 100644 (file)
 #include "vchiq_if.h"
 #include "vchiq_util.h"
 
+/* Do this so that we can test-build the code on non-rpi systems */
+#if IS_ENABLED(CONFIG_RASPBERRYPI_FIRMWARE)
+
+#else
+
+#ifndef dsb
+#define dsb(a)
+#endif
+
+#endif /* IS_ENABLED(CONFIG_RASPBERRYPI_FIRMWARE) */
+
 #endif