j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: agraf Date: Sun Jun 23 00:30:31 2013 New Revision: 1157 URL: http://tracker.coreboot.org/trac/openbios/changeset/1157
Log: Unix build: Add is_machine helpers
When building the unix target on PPC, our #ifdef'ery thinks we can properly use the is_machine helpers and act accordingly to implement hacks.
Expose these helpers in the unix target as well, just always define them as false. That way we safe compilation without adding too much logic to deal with unimportant corner cases.
Signed-off-by: Alexander Graf agraf@suse.de
Modified: trunk/openbios-devel/arch/unix/unix.c
Modified: trunk/openbios-devel/arch/unix/unix.c ============================================================================== --- trunk/openbios-devel/arch/unix/unix.c Sun Jun 9 14:25:46 2013 (r1156) +++ trunk/openbios-devel/arch/unix/unix.c Sun Jun 23 00:30:31 2013 (r1157) @@ -82,6 +82,26 @@ } #endif
+#ifdef CONFIG_PPC +/* Expose system level is_machine helpers to make generic code easier */ + +#include "drivers/drivers.h" +int is_apple(void) +{ + return 0; +} + +int is_oldworld(void) +{ + return 0; +} + +int is_newworld(void) +{ + return 0; +} +#endif + #if 0 static void write_dictionary(char *filename) {