summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/Makefile7
-rw-r--r--mdk-stage1/Makefile.common4
2 files changed, 10 insertions, 1 deletions
diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile
index 71a0332e4..38e059b8e 100644
--- a/mdk-stage1/Makefile
+++ b/mdk-stage1/Makefile
@@ -132,6 +132,9 @@ endif
ifeq (x86_64, $(ARCH))
DIRS += pcmcia pcmcia-resource sysfs
endif
+ifeq (mips, $(ARCH))
+DIRS += sysfs
+endif
ifeq (i386,$(ARCH))
@@ -142,7 +145,9 @@ ifeq (x86_64,$(ARCH))
PCMCIA_LIB = pcmcia/libpcmcia.a sysfs/libsysfs.a
PCMCIA_DEFS = -DENABLE_PCMCIA
endif
-
+ifeq (mips,$(ARCH))
+PCMCIA_LIB = sysfs/libsysfs.a
+endif
USB_DEFS_GEN = -DENABLE_USB
USB_DEFS = -DENABLE_USB -DDISABLE_PCIADAPTERS
diff --git a/mdk-stage1/Makefile.common b/mdk-stage1/Makefile.common
index fc4372851..95bc6d3cb 100644
--- a/mdk-stage1/Makefile.common
+++ b/mdk-stage1/Makefile.common
@@ -26,7 +26,11 @@ else
F = NEWT
endif
+# diet libc syscalls are broken
+ifneq (mips, $(ARCH))
DIET = $(shell test -x /usr/bin/diet && echo diet)
+endif
+
ifeq ($(DIET), diet)
#- default lib is dietlibc (honoured by main Makefile whenever possible)