Skip to content

Commit 823fbc0

Browse files
change function name
do_debootstrap -> do_build
1 parent 22e5c10 commit 823fbc0

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ contains functions that can be used for cmd line building and integrating in scr
3939
do_mount "/path/to/fs"
4040
```
4141

42-
<kbd>do_debootstrap()</kbd> bootstraps linux to a directories of specified arch
42+
<kbd>do_build()</kbd> bootstraps linux to a directories of specified arch
4343
```bash
44-
do_debootstrap "out/udroid-test" "arm64"
44+
do_build "out/udroid-test" "arm64"
4545
```
4646
###### TODO ( need to write more )
4747

@@ -51,7 +51,7 @@ do_debootstrap "out/udroid-test" "arm64"
5151
```bash
5252
source plugins/envsetup
5353
SUITE=impish
54-
do_debootstrap "out/fs" "arm64"
54+
do_build "out/fs" "arm64"
5555
```
5656
### Quick build scripts
5757
- `build-impish-raw.sh`: to build raw ubuntu 21.10 tarballs
@@ -70,7 +70,7 @@ do_debootstrap "out/fs" "arm64"
7070
- `no_to_directory()`: exits if directory given is present
7171
- `foreign_arch()`: checks does target arch matches with host architecture
7272
- `includes_packages()`: takes care of extrapackges when a variable `INCLUDE_PACKAGES` is set with packages
73-
- `do_debootstrap()`: bootstraps linux to with target arch to target directorie
73+
- `do_build()`: bootstraps linux to with target arch to target directorie
7474
- `do_second_stage()`: if foreign arch triggers second stage
7575
- - `do_qemu_user_emulation()` sets up qemu binaries in chroot
7676
- `do_chroot_ae()`: to run command in chroot

build-impish-raw.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ additional_setup() {
3232
install_pkg "lz4 bzip2 gzip bc pv"
3333
}
3434

35-
do_debootstrap "${frn}-arm64" arm64
35+
do_build "${frn}-arm64" arm64
3636
do_compress "${frn}-arm64"
37-
do_debootstrap "${frn}-armhf" armhf
37+
do_build "${frn}-armhf" armhf
3838
do_compress "${frn}-armhf"
39-
do_debootstrap "${frn}-amd64" amd64
39+
do_build "${frn}-amd64" amd64
4040
do_compress "${frn}-amd64"
4141

4242
do_unmount "${frn}-arm64"

build-kali-raw.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ ENABLE_USER_SETUP=false
3535

3636
warn "for best results use kali-linux host for building"
3737

38-
do_debootstrap "${frn}-arm64" arm64
38+
do_build "${frn}-arm64" arm64
3939
do_compress "${frn}-arm64"
40-
do_debootstrap "${frn}-armhf" armhf
40+
do_build "${frn}-armhf" armhf
4141
do_compress "${frn}-armhf"
42-
do_debootstrap "${frn}-amd64" amd64
42+
do_build "${frn}-amd64" amd64
4343
do_compress "${frn}-amd64"
4444

4545
do_unmount "${frn}-arm64"

build/mate/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function stage_one() {
4848
for _arch in ${BUILD_ARCH}; do
4949
export _arch
5050
msg "+ building ${_arch}"
51-
do_debootstrap "${OUT_DIR}-${_arch}" "$_arch" || exit 1
51+
do_build "${OUT_DIR}-${_arch}" "$_arch" || exit 1
5252
second_stage
5353
done
5454
}

build/raw/build-hirsute-raw.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ frn="out/hirsute-raw"
1616
OVERRIDER_COMPRESSION_TYPE="gzip"
1717
ENABLE_EXIT=true
1818

19-
do_debootstrap "${frn}-arm64" arm64
19+
do_build "${frn}-arm64" arm64
2020
do_compress "${frn}-arm64"
21-
do_debootstrap "${frn}-armhf" armhf
21+
do_build "${frn}-armhf" armhf
2222
do_compress "${frn}-armhf"
23-
do_debootstrap "${frn}-amd64" amd64
23+
do_build "${frn}-amd64" amd64
2424
do_compress "${frn}-amd64"

cook.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ OVERRIDER_COMPRESSION_TYPE="gzip"
1818
ENABLE_EXIT=true
1919
ENABLE_USER_SETUP=false
2020

21-
do_debootstrap "${frn}-arm64" arm64
21+
do_build "${frn}-arm64" arm64
2222
do_compress "${frn}-arm64"
23-
do_debootstrap "${frn}-armhf" armhf
23+
do_build "${frn}-armhf" armhf
2424
do_compress "${frn}-armhf"
25-
do_debootstrap "${frn}-amd64" amd64
25+
do_build "${frn}-amd64" amd64
2626
do_compress "${frn}-amd64"
2727

2828
do_unmount "${frn}-arm64"

plugins/envsetup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ includes_packages() {
226226
shout "$x includes processed "
227227
}
228228

229-
do_debootstrap() {
229+
do_build() {
230230
export target_dir="$1"
231231
export arch="$2"
232232

0 commit comments

Comments
 (0)