# -*- makefile -*-
-COMMON_CFLAGS += -nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)
+ifeq ($(target_cpu), sparc64)
+COMMON_LDFLAGS += -mno-relax
+endif
kernel_img_RELOCATABLE = yes
pkglib_PROGRAMS = kernel.img
endif
grub_emu_LDFLAGS = $(LIBCURSES)
+ifeq ($(target_cpu), sparc64)
+grub_emu_LDFLAGS += -m64 -mno-relax
+endif
ifeq ($(enable_grub_emu_usb), yes)
kernel_img_HEADERS += libusb.h
#include <grub/symbol.h>
#include <grub/types.h>
-#if defined (__i386__) || defined (__x86_64__)
+#if defined (__i386__) || defined (__x86_64__) || \
+ (defined (GRUB_MACHINE_EMU) && GRUB_MACHINE_EMU)
static inline void
grub_arch_sync_caches (void *address __attribute__ ((unused)),
grub_size_t len __attribute__ ((unused)))
#endif
char * EXPORT_FUNC(xasprintf) (const char *fmt, ...);
+char * canonicalize_file_name (const char *path);
#endif /* GRUB_EMU_MISC_H */
#endif
-#if !(defined (__i386__) || defined (__x86_64__)) && GRUB_NO_MODULES
-void
-grub_arch_sync_caches (void *address __attribute__ ((unused)),
- grub_size_t len __attribute__ ((unused)))
-{
-}
-#endif
-
#ifdef __MINGW32__
void sync (void)