From 9ed3b9267b8e550e959c7ef196dda82bc38d9531 Mon Sep 17 00:00:00 2001 From: Stew Benedict Date: Tue, 10 Jul 2001 15:09:21 +0000 Subject: minor mods for PPC build, define TIOCSCTTY, Makefile mods --- mdk-stage1/Makefile.common | 8 +++++++- mdk-stage1/init.c | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'mdk-stage1') 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 @@ -28,12 +28,18 @@ F = NEWT #- override in some situations 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", -- cgit v1.2.1