Skip to content

Commit

Permalink
NetBSD src for "kernel", checkout.sh rev 33dc4d42efde453cd7384271217d…
Browse files Browse the repository at this point in the history
…cd82b85f6fb3
  • Loading branch information
anttikantee committed Jun 19, 2015
1 parent 6c0f80a commit b79bc83
Show file tree
Hide file tree
Showing 10 changed files with 552 additions and 443 deletions.
20 changes: 9 additions & 11 deletions share/mk/bsd.own.mk
@@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.848 2015/05/12 08:25:28 martin Exp $
# $NetBSD: bsd.own.mk,v 1.854 2015/06/18 22:29:12 pooka Exp $

# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
Expand Down Expand Up @@ -226,7 +226,9 @@ NM= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-nm
OBJCOPY= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objcopy
OBJDUMP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objdump
RANLIB= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ranlib
READELF= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-readelf
SIZE= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-size
STRINGS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strings
STRIP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strip

TOOL_CC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc
Expand All @@ -249,7 +251,9 @@ NM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-nm
OBJCOPY= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objcopy
OBJDUMP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objdump
RANLIB= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib
READELF= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-readelf
SIZE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-size
STRINGS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strings
STRIP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip

# GCC supports C, C++, Fortran and Objective C
Expand Down Expand Up @@ -820,6 +824,7 @@ MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd
.if !empty(MACHINE_ARCH:M*arm*)
# Flags to pass to CC for using the old APCS ABI on ARM for compat or stand.
ARM_APCS_FLAGS= -mabi=apcs-gnu -mfloat-abi=soft
ARM_APCS_FLAGS+=${${ACTIVE_CC} == "gcc":? -marm :}
ARM_APCS_FLAGS+=${${ACTIVE_CC} == "clang":? -target ${MACHINE_GNU_ARCH}--netbsdelf -B ${TOOLDIR}/${MACHINE_GNU_PLATFORM}/bin :}
.endif

Expand Down Expand Up @@ -895,10 +900,9 @@ MK${var}:= yes
.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" \
|| ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" \
|| ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_CPU} == "aarch64" \
|| ${MACHINE_ARCH} == "riscv64"
|| ${MACHINE_ARCH} == "riscv64" \
|| !empty(MACHINE_ARCH:Mearm*)
MKCOMPAT?= yes
.elif !empty(MACHINE_ARCH:Mearm*)
MKCOMPAT?= no
.else
# Don't let this build where it really isn't supported.
MKCOMPAT:= no
Expand Down Expand Up @@ -1298,7 +1302,7 @@ X11SRCDIR.xf86-input-${_i}?= ${X11SRCDIRMIT}/xf86-input-${_i}/dist

.for _v in \
ag10e apm ark ast ati ati-kms chips cirrus crime \
geode glint i128 i740 igs imstt intel mach64 mga \
geode glint i128 i740 igs imstt intel intel-old mach64 mga \
neomagic newport nsc nv nvxbox openchrome pnozz \
r128 radeonhd rendition \
s3 s3virge savage siliconmotion sis suncg14 \
Expand All @@ -1307,12 +1311,6 @@ X11SRCDIR.xf86-input-${_i}?= ${X11SRCDIRMIT}/xf86-input-${_i}/dist
X11SRCDIR.xf86-video-${_v}?= ${X11SRCDIRMIT}/xf86-video-${_v}/dist
.endfor

# Build the ati 6.x (UMS supported) or 7.x (KMS demanded) drivers
.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
MKX11RADEONKMS?= yes
.endif
MKX11RADEONKMS?= no

# Only install the radeon firmware on DRM-happy systems.
.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
MKRADEONFIRMWARE?= yes
Expand Down
8 changes: 4 additions & 4 deletions sys/kern/syscalls.master
@@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.277 2015/05/13 02:10:46 pgoyette Exp $
$NetBSD: syscalls.master,v 1.278 2015/06/18 15:16:12 pooka Exp $

; @(#)syscalls.master 8.2 (Berkeley) 1/13/94

Expand Down Expand Up @@ -573,11 +573,11 @@
const struct sigaltstack *nss, \
struct sigaltstack *oss); }
282 STD { int|sys|14|vfork(void); }
283 STD { int|sys||__posix_chown(const char *path, uid_t uid, \
283 STD RUMP { int|sys||__posix_chown(const char *path, uid_t uid, \
gid_t gid); }
284 STD { int|sys||__posix_fchown(int fd, uid_t uid, \
284 STD RUMP { int|sys||__posix_fchown(int fd, uid_t uid, \
gid_t gid); }
285 STD { int|sys||__posix_lchown(const char *path, uid_t uid, \
285 STD RUMP { int|sys||__posix_lchown(const char *path, uid_t uid, \
gid_t gid); }
286 STD RUMP { pid_t|sys||getsid(pid_t pid); }
287 STD { pid_t|sys||__clone(int flags, void *stack); }
Expand Down

0 comments on commit b79bc83

Please sign in to comment.