With the new configure enable-platform parameters it is possible
configure no platform support. Add a new minimal 'dummy' platform
so that the __start_platforms and __stop_platforms variables needed
by platform_init are created.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover_platform_ro_CPPFLAGS = \
$(AM_CPPFLAGS)
discover_platform_ro_CPPFLAGS = \
$(AM_CPPFLAGS)
+# Build dummy last to put it at the end of the platforms section.
+discover_platform_ro_SOURCES += discover/platform-dummy.c
+
if ENABLE_MTD
discover_platform_ro_SOURCES += \
discover/hostboot.c
if ENABLE_MTD
discover_platform_ro_SOURCES += \
discover/hostboot.c
--- /dev/null
+#include "platform.h"
+
+static bool probe(struct platform *p, void *ctx)
+{
+ (void)p;
+ (void)ctx;
+
+ return false;
+}
+
+static struct platform dummy = {
+ .name = "dummy",
+ .probe = probe,
+};
+
+register_platform(dummy);