summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorStew Benedict <stewb@mandriva.org>2001-07-10 15:09:21 +0000
committerStew Benedict <stewb@mandriva.org>2001-07-10 15:09:21 +0000
commit9ed3b9267b8e550e959c7ef196dda82bc38d9531 (patch)
treeb219633ac5b1693f7afcb00f273f79e572880f75 /mdk-stage1
parent07cd2d9012319aeb02a0a769bf9a951e5441a9a9 (diff)
downloaddrakx-9ed3b9267b8e550e959c7ef196dda82bc38d9531.tar
drakx-9ed3b9267b8e550e959c7ef196dda82bc38d9531.tar.gz
drakx-9ed3b9267b8e550e959c7ef196dda82bc38d9531.tar.bz2
drakx-9ed3b9267b8e550e959c7ef196dda82bc38d9531.tar.xz
drakx-9ed3b9267b8e550e959c7ef196dda82bc38d9531.zip
minor mods for PPC build, define TIOCSCTTY, Makefile mods
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",