NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Adding files to the NetBSD source tree



Hallo,

I am doing some research / development on NetBSD for which I want to
set up a proper build environment first. I am using VS Code and WSL on
Windows 10 with an Ubuntu 22.04 userland. I obtained the NetBSD
sources from Github and configured tasks to build everything using
build.sh, including release and live-image (the latter I can boot in
qemu).

I can repeatedly pull in changes and refresh the build and everything
works fine. However, adding new files to the source tree seems to be a
little tricky. As a first step I tried to include a C header file
called port.h which is to land in /usr/include/sys as follows:

1) Put the header file into sys/sys in the source tree:

~/src/sys/sys$ ls -l port.h
-rw-r--r-- 1 stephan stephan 4712 Nov  9 09:07 port.h


2) Made sure it contains an (I think) RCS tag. I feel these are
important but I could not find information on how these are handled
exactly.

$ head -1 port.h
/*      $NetBSD: port.h,v 1.00 2022/11/08 16:57:28 stephanwib Exp $        */


3) Added port.h to sys/sys/Makefile under INCS=

param.h pcu.h pipe.h pmf.h poll.h pool.h port.h power.h proc.h \


4) Updated the RCS tag of sys/sys/Makefile (although I don´t know if
this is needed)

~/src/sys/sys$ head -1 Makefile
#       $NetBSD: Makefile,v 1.181 2022/11/08 13:03:10 stephanwib Exp $



Building is done with this command:

./build.sh -u -U -m amd64 -a x86_64 -j4 release


With my changes in the tree it fails with these messages:


  ===============================
checkflist ===> distrib/sets
--- check_DESTDIR ---
--- checkflist ---
cd /home/stephan/src/distrib/sets &&
DESTDIR=/home/stephan/src/obj/destdir.amd64  MACHINE=amd64
MACHINE_ARCH=x86_64
AWK=/home/stephan/src/obj/tooldir.Linux-4.4.0-19041-Microsoft-x86_64/bin/nbawk
 CKSUM=/home/stephan/src/obj/tooldir.Linux-4.4.0-19041-Microsoft-x86_64/bin/nbcksum
 DB=/home/stephan/src/obj/tooldir.Linux-4.4.0-19041-Microsoft-x86_64/bin/nbdb
 EGREP=/home/stephan/src/obj/tooldir.Linux-4.4.0-19041-Microsoft-x86_64/bin/nbgrep\
-E  HOST_SH=/usr/bin/sh
MAKE=/home/stephan/src/obj/tooldir.Linux-4.4.0-19041-Microsoft-x86_64/bin/nbmake
 MKTEMP=/home/stephan/src/obj/tooldir.Linux-4.4.0-19041-Microsoft-x86_64/bin/nbmktemp
 MTREE=/home/stephan/src/obj/tooldir.Linux-4.4.0-19041-Microsoft-x86_64/bin/nbmtree
 PAX=/home/stephan/src/obj/tooldir.Linux-4.4.0-19041-Microsoft-x86_64/bin/nbpax
 COMPRESS_PROGRAM=/home/stephan/src/obj/tooldir.Linux-4.4.0-19041-Microsoft-x86_64/bin/nbxz
 GZIP=-n  XZ_OPT=-9  TAR_SUFF=tar.xz
PKG_CREATE=/home/stephan/src/obj/tooldir.Linux-4.4.0-19041-Microsoft-x86_64/bin/nbpkg_create
 SED=/home/stephan/src/obj/tooldir.Linux-4.4.0-19041-Microsoft-x86_64/bin/nbsed
 TSORT=/home/stephan/src/obj/tooldir.Linux-4.4.0-19041-Microsoft-x86_64/bin/nbtsort\
-q  /usr/bin/sh /home/stephan/src/distrib/sets/checkflist  -L base  -M
/home/stephan/src/obj/destdir.amd64/METALOG.sanitised

=======  1 extra files in DESTDIR  =========
Files in DESTDIR but missing from flist.
File is obsolete or flist is out of date ?
------------------------------------------
./usr/include/sys/port.h
=========  end of 1 extra files  ===========



Can somebody say what it missing in this case?


Many thanks,

Stephan


Home | Main Index | Thread Index | Old Index