Mercurial > vanilla
comparison gnu/grub/grub.sh @ 1216:6710613b88b9
misc: remove build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 29 Sep 2021 13:49:32 +0200 |
parents | 297b5eef115e |
children | 57dc83a39b13 |
comparison
equal
deleted
inserted
replaced
1215:3214f7fed454 | 1216:6710613b88b9 |
---|---|
88 | 88 |
89 cd .. | 89 cd .. |
90 rm -rf build | 90 rm -rf build |
91 } | 91 } |
92 | 92 |
93 build() | 93 rm -rf $PKGNAME-$PKGVERSION |
94 { | 94 tar xvf $PKGNAME-$PKGVERSION.tar.xz |
95 rm -rf $PKGNAME-$PKGVERSION | 95 cd $PKGNAME-$PKGVERSION |
96 tar xvf $PKGNAME-$PKGVERSION.tar.xz | |
97 cd $PKGNAME-$PKGVERSION | |
98 | 96 |
99 if [ "$CC" = "clang" ]; then | 97 if [ "$CC" = "clang" ]; then |
100 patch -p0 < ../patch-clang.patch | 98 patch -p0 < ../patch-clang.patch |
101 fi | 99 fi |
102 | 100 |
103 for p in $platforms; do | 101 for p in $platforms; do |
104 case $p in | 102 case $p in |
105 efi) | 103 efi) |
106 build_grub --with-platform=$p --disable-efiemu | 104 build_grub --with-platform=$p --disable-efiemu |
107 ;; | 105 ;; |
108 *) | 106 *) |
109 build_grub --with-platform=$p | 107 build_grub --with-platform=$p |
110 ;; | 108 ;; |
111 esac | 109 esac |
112 done | 110 done |
113 | 111 |
114 cd .. | 112 cd .. |
115 rm -rf $PKGNAME-$PKGVERSION | 113 rm -rf $PKGNAME-$PKGVERSION |
116 } |