summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/Makefile.common8
-rw-r--r--mdk-stage1/init.c3
2 files changed, 10 insertions, 1 deletions
diff --git a/mdk-stage1/Makefile.common b/mdk-stage1/Makefile.common
index 58b43bcd7..b2ef073e2 100644
--- a/mdk-stage1/Makefile.common
+++ b/mdk-stage1/Makefile.common
@@ -29,11 +29,17 @@ F = NEWT
ifeq (ia64, $(ARCH))
L = GLIBC
endif
+ifeq (ppc, $(ARCH))
+L = GLIBC
+endif
#- flags used by all stuff
+ifeq (ppc, $(ARCH))
+CFLAGS = -Os -pipe -Wall -fomit-frame-pointer
+else
CFLAGS = -Os -pipe -Wall -Werror -fomit-frame-pointer
-
+endif
DIETLIBC_INCLUDES = -I$(top_dir)/dietlibc/include -I.
GLIBC_INCLUDES = -I.
diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c
index e0587f2a4..ebe9d1ba9 100644
--- a/mdk-stage1/init.c
+++ b/mdk-stage1/init.c
@@ -27,6 +27,9 @@
#include "config-stage1.h"
+#if defined(__powerpc__)
+#define TIOCSCTTY 0x540
+#endif
char * env[] = {
"PATH=/usr/bin:/bin:/sbin:/usr/sbin:/mnt/sbin:/mnt/usr/sbin:/mnt/bin:/mnt/usr/bin",