• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/bash
2
3#
4# This is a build script file for OS image generation using mkosi (https://github.com/systemd/mkosi).
5# It is invoked in a build environment, with the following set well-known variables:
6#
7#     $SRCDIR
8#     $DESTDIR
9#     $BUILDDIR
10#
11
12set -eo pipefail
13
14mkdir -p $DESTDIR/root/
15echo "systemctl restart systemd-networkd" >> $DESTDIR/root/.bash_profile
16chmod +x $DESTDIR/root/.bash_profile
17
18# Build newer version of liburing
19cd $SRCDIR
20git clone git://git.kernel.dk/liburing.git
21cd liburing
22./configure
23make -j$(nproc)
24make DESTDIR= install
25
26# Build in BUILDDIR and install to DESTDIR
27mkdir -p $BUILDDIR/ubdsrv
28LIBURING_DIR=$SRCDIR/liburing $SRCDIR/build_with_liburing_src
29make install
30
31# Copy tests into the dest
32mkdir -p $DESTDIR/usr/share
33cp -r $SRCDIR/tests $DESTDIR/usr/share/
34