summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorArnaud Patard <rtp@mageia.org>2011-03-18 21:33:11 +0000
committerArnaud Patard <rtp@mageia.org>2011-03-18 21:33:11 +0000
commit2bfae95a970f4c7284a2484fb967bbf9174c2cc6 (patch)
tree0ee61668e342609cc56f0755d5edd2277e66aef3 /mdk-stage1
parenteea2f8ef9ddf7e461702d8fda0b8e98e623694c2 (diff)
downloaddrakx-2bfae95a970f4c7284a2484fb967bbf9174c2cc6.tar
drakx-2bfae95a970f4c7284a2484fb967bbf9174c2cc6.tar.gz
drakx-2bfae95a970f4c7284a2484fb967bbf9174c2cc6.tar.bz2
drakx-2bfae95a970f4c7284a2484fb967bbf9174c2cc6.tar.xz
drakx-2bfae95a970f4c7284a2484fb967bbf9174c2cc6.zip
- import stage1/drakxtools mips support
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)