Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#!/bin/sh
#	$NetBSD: mkpc,v 1.1 2020/05/24 19:28:31 christos Exp $

set +x
getversion() {
	(echo '#include "uv/version.h"';
	    echo UV_VERSION_MAJOR.UV_VERSION_MINOR.UV_VERSION_PATCH) |
	    eval "$CPP $CPPFLAGS" -I$1 | grep -v '#' | tr -d ' '
}
VERSION="$(getversion $1)"
echo ${VERSION} 1>&2

cat << EOF | sed -e s/@VERSION@/${VERSION}/
# \$NetBSD: mkpc,v 1.1 2020/05/24 19:28:31 christos Exp $
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include

Name: libuv
Version: @VERSION@
Description: multi-platform support library with a focus on asynchronous I/O.
URL: http://libuv.org/

Libs: -luv -lkvm  
Cflags:
EOF