-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.def
41 lines (34 loc) · 1.31 KB
/
config.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# Configuration file for Carbs bootstrapper
#
# ROOT DIRECTORY
# This is where the rootfs will be installed.
MNTDIR="$PWD/rootfs"
# List of packages to be installed
# Most of those are already dependencies of each other but it is not a bad idea
# to put them to the list anyway.
PKGS="baselayout musl otools cl-utils b3sum cpt gcc make pigz xz zlib bzip2 binutils
byacc libressl curl linux-headers flex busybox pkgconf rsync git"
# BUILD FLAGS
# It is a good idea to not use flags like "native". If you plan on using the
# tarball on another computer # due to architechtural differences. You can
# manually override this march configuration here by removing the case.
march=$(uname -m)
case "$march" in
x86_64) march=x86-64 ;;
i*86) march=i686 ;;
esac
CFLAGS="-march=$march -mtune=generic -pipe -Os"
CXXFLAGS="-march=$march -mtune=generic -pipe -Os"
MAKEFLAGS="-j$(nproc)"
# Repository
# This repository will be cloned to /tmp/repo on the host. It is optional.
REPO="https://git.carbslinux.org/repository"
# Host repo path is the repository to use when building packages.
HOST_REPO_PATH="/tmp/repo/core"
export MNTDIR PKGS CFLAGS CXXFLAGS REPO HOST_REPO_PATH MAKEFLAGS
postinstall() {
# Switch to busybox grep as OpenBSD grep is too POSIX for some build systems
cpt a busybox /usr/bin/grep
}
# vim:filetype=sh