last ffpmeg before breaking nyanmp
[nyanlinux.git] / conf.bootstrap.sh
blobef1551089a803bde37e36edc8d61bb819d06f793
1 # CONFIGURATION BASIC
2 bootstrap_target_sysroot=/mnt/nyan2/root
3 bootstrap_target_sysroot_uuid=a88e68ce-5f15-412b-9725-95cafe9f7c03
4 bootstrap_target_efi=/mnt/nyan2/efi
6 # CONFIGURATION ADVANCED
7 # "linux-gnu" = OS then counts as 1 in the triple
8 bootstrap_build_gnu_triple=x86_64-nyan1-linux-gnu
9 bootstrap_build_ccld_flags='-B/nyan/glibc/current/lib'
10 bootstrap_build_cppflags='-isystem /nyan/glibc/current/include -isystem /nyan/linux-headers/current/include'
11 bootstrap_build_cflags='-O2 -pipe -fPIC'
12 bootstrap_build_cc="$bootstrap_build_gnu_triple-gcc"
13 bootstrap_build_ar="$bootstrap_build_gnu_triple-ar"
14 bootstrap_build_ranlib="$bootstrap_build_gnu_triple-ranlib"
15 bootstrap_build_cpp="$bootstrap_build_cc -E $bootstrap_build_cppflags"
16 bootstrap_build_zlib_cppflags='-I/nyan/zlib/current/include'
17 bootstrap_build_zlib_ldflags='-L/nyan/zlib/current/lib'
18 bootstrap_build_strip="$bootstrap_build_gnu_triple-strip"
20 bootstrap_target_linux_arch=x86_64
21 # the arch dir in linux src dir
22 bootstrap_target_linux_arch_dir=x86
23 # bootstrapping on a nyan distro already? use an index suffix
24 bootstrap_target_gnu_triple=x86_64-nyan2-linux-gnu
25 bootstrap_target_efi_boot_exe=BOOTX64.EFI
26 bootstrap_target_cross_toolchain=$bootstrap_target_sysroot/nyan/bootstrap/$bootstrap_build_gnu_triple/cross-toolchains/$bootstrap_target_gnu_triple
27 # really basic checks
28 if test $bootstrap_target_gnu_triple = $bootstrap_build_gnu_triple; then
29 printf "\
30 ERROR:target gnu triple is the same than the bootstrap build gnu triple.\
31 many SDKs won't configure properly. Use noise(=an index) to make them\
32 different\n"
33 exit 1
35 if ! test -d $bootstrap_target_sysroot -a -d $bootstrap_target_efi; then
36 printf "\
37 ERROR:missing mounted $bootstrap_target_sysroot or $bootstrap_target_efi\n"
38 exit 1