summaryrefslogtreecommitdiff
path: root/src/stage1.sh
blob: e8c45639ff492b900107f5289180950093021a0c (plain)
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
42
#!/bin/bash
 ##############################################################################
 #                      parabola-riscv64-bootstrap                            #
 #                                                                            #
 #    Copyright (C) 2018  Andreas Grapentin                                   #
 #                                                                            #
 #    This program is free software: you can redistribute it and/or modify    #
 #    it under the terms of the GNU General Public License as published by    #
 #    the Free Software Foundation, either version 3 of the License, or       #
 #    (at your option) any later version.                                     #
 #                                                                            #
 #    This program is distributed in the hope that it will be useful,         #
 #    but WITHOUT ANY WARRANTY; without even the implied warranty of          #
 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           #
 #    GNU General Public License for more details.                            #
 #                                                                            #
 #    You should have received a copy of the GNU General Public License       #
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.   #
 ##############################################################################

set -eu

_chrootdir="$_builddir"/$_arch-root
_makepkgdir="$_builddir"/$_arch-makepkg

# prepare makepkg environment
. src/stage1/create_makepkg.sh

# prepare skeleton chroot
. src/stage1/create_chroot.sh

# create temporary shim packages
_shims="gcc-libs glibc ca-certificates-utils"
for s in $_shims; do
  . src/stage1/$s-shim.sh
done

# create base package tree
. src/stage1/create_package_tree.sh

# simply repackage anything with arch=('any')
. src/stage1/repackage_arch_any.sh