Skip to content

Commit ea46b29

Browse files
committed
More build fixups
1 parent 5e3efe2 commit ea46b29

File tree

13 files changed

+19
-8
lines changed

13 files changed

+19
-8
lines changed

CoreServices/WindowServer/libevdev/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ ${INCSDIR}: .PHONY
4646
mkdir -vp ${OBJTOP}/tmp/${INCSDIR}
4747

4848
event-names.h: .PHONY
49-
${.CURDIR}/libevdev/make-event-names.py \
49+
${OBJTOP}/tmp/usr/bin/python3 \
50+
${.CURDIR}/libevdev/make-event-names.py \
5051
${.CURDIR}/include/linux/linux/input.h \
5152
${.CURDIR}/include/linux/linux/input-event-codes.h >${.TARGET}
5253

Frameworks/AppKit/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ MK_AUTO_OBJ=yes
66
NO_FMWK_COMMON=yes
77
.include "../framework.common.mk"
88

9+
SUBDIR+= gperf .WAIT
910
SUBDIR+= fontconfig
1011
SUBDIR+= libxkbcommon
1112

Frameworks/AppKit/fontconfig/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ all: build
3131
${MAKEOBJDIR}/Makefile:
3232
mkdir -p ${MAKEOBJDIR}
3333
cd ${MAKEOBJDIR}; LDFLAGS="${LDFLAGS:S/-L /-L/Wg}" \
34+
PYTHON=${OBJTOP}/tmp/usr/bin/python3 \
3435
${.CURDIR}/configure ${CONFIGURE_ARGS}
3536

3637
build: ${MAKEOBJDIR}/Makefile
37-
${GMAKE} -C ${MAKEOBJDIR}
38+
PYTHON=${OBJTOP}/tmp/usr/bin/python3 ${GMAKE} -C ${MAKEOBJDIR}
3839

3940
clean:
4041
rm -rf ${MAKEOBJDIR}

Frameworks/AppKit/gperf/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ CONFIGURE_ARGS+= --prefix=/usr \
1010
--localstatedir=/var
1111
all: build
1212
configure: .EXEC
13-
${.CURDIR}/configure ${CONFIGURE_ARGS}
13+
mkdir -p ${MAKEOBJDIR}
14+
cd ${MAKEOBJDIR}; ${.CURDIR}/configure ${CONFIGURE_ARGS}
1415

1516
build: configure
1617
${GMAKE} -C ${MAKEOBJDIR}

Frameworks/AppKit/libxkbcommon/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ src/xkbcomp/parser.c: src/xkbcomp/parser.y
8787

8888
.include <bsd.lib.mk>
8989

90-
${OBJS}: config.h src/xkbcomp/parser.c
90+
${OBJS}: obj config.h src/xkbcomp/parser.c

Frameworks/OpenGL/mesa/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ build:
3838
-Dgbm=enabled -Dxmlconfig=disabled -Dexpat=disabled \
3939
${MAKEOBJDIR} ${.CURDIR}
4040
sed -i.bak -e 's@-I/usr/include@@g' ${MAKEOBJDIR}/build.ninja
41+
PATH=${OBJTOP}/tmp/usr/bin:${OBJTOP}/tmp/legacy/bin:${OBJTOP}/Frameworks/OpenGL/wayland/scanner:${OBJTOP}/usr.bin/clang/llvm-ar \
4142
${NINJA}
4243

4344
install:

Frameworks/OpenGL/wayland/scanner/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ LDFLAGS= -lbsdxml
2020
WARNS?= 2
2121

2222
wayland.dtd.h::
23-
python3 ${.CURDIR}/../src/embed.py \
23+
${OBJTOP}/tmp/usr/bin/python3 ${.CURDIR}/../src/embed.py \
2424
${.CURDIR}/../protocol/wayland.dtd wayland_dtd >${.TARGET}
2525

2626
wayland-version.h: ../src/wayland-version.h.in

Makefile.inc1

+1
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,7 @@ PACKAGE= kernel
691691
# This stage installs a previously built world.
692692
#
693693

694+
CFLAGS+= -D__RAVYNOS__ -D__MACH__
694695
BOOTSTRAPPING?= 0
695696
# Keep these in sync
696697
MINIMUM_SUPPORTED_OSREL?= 1104001

lib/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ SUBDIR_DEPEND_liblzma= libthr
179179
.if ${MK_OFED} != "no"
180180
SUBDIR_DEPEND_libpcap= ofed
181181
.endif
182+
SUBDIR_DEPEND_libxml2= libdl
182183
SUBDIR_DEPEND_libxpc= libdispatch
183184
SUBDIR_DEPEND_nss_tacplus= libtacplus
184185

lib/libc/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ LIBC_ARCH=${MACHINE_CPUARCH}
2626
# To include legacy CSRG SCCS ID strings, remove -DNO__SCCSID from CFLAGS.
2727
# To include RCS ID strings from other BSD projects, remove -DNO__RCSID from CFLAGS.
2828
CFLAGS+=-DNO__SCCSID -DNO__RCSID
29-
CFLAGS+=-D__MACH__ -D__RAVYNOS__
3029

3130
LIB=c
3231
SHLIB_MAJOR= 7

lib/libsys/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ INCS= libsys.h _libsys.h
2828
CFLAGS+=-I${LIBSYS_SRCTOP}/include -I${LIBC_SRCTOP}/include
2929
CFLAGS+=-I${LIBSYS_SRCTOP}/${LIBC_ARCH}
3030
CFLAGS+=-I${LIBC_SRCTOP}/${LIBC_ARCH}
31-
CFLAGS+=-D__MACH__ -D__RAVYNOS__
3231

3332
.PATH: ${LIBC_SRCTOP}/string
3433
SRCS+= memcpy.c memset.c strlcpy.c

lib/libxml2/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ PATH+= ${OBJTOP}/tmp/legacy/bin
44

55
all:
66
cmake -G "Unix Makefiles" \
7+
-DCMAKE_SHARED_LINKER_FLAGS="-L${OBJTOP}/lib/libdl" \
78
-DPKG_CONFIG_EXECUTABLE=/usr/bin/true \
89
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
910
-DLIBXML2_WITH_SAX1=ON \

tools/ravynOS/build.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ install() {
2626

2727
base_build() {
2828
cd ${CIRRUS_WORKING_DIR}
29-
make -j${CORES} MALLOC_PRODUCTION=1 WITHOUT_CLEAN=1 MK_LIB32=no COMPILER_TYPE=clang buildworld
29+
make -j${CORES} MALLOC_PRODUCTION=1 WITHOUT_CLEAN=1 \
30+
MK_LIB32=no MK_LLVM_TARGET_X86=yes \
31+
MK_LLVM_TARGET_ARM=yes MK_LLVM_TARGET_AARCH64=yes \
32+
MK_LLVM_TARGET_RISCV=no MK_LLVM_TARGET_POWERPC=no \
33+
MK_LLVM_TARGET_MIPS=no MK_LLVM_TARGET_BPF=no \
34+
COMPILER_TYPE=clang buildworld
3035
if [ $? -ne 0 ]; then exit $?; fi
3136
}
3237

0 commit comments

Comments
 (0)