Skip to content

Commit

Permalink
Merge pull request #34 from RandomCoderOrg/add-support-platform-termux
Browse files Browse the repository at this point in the history
Maintainence + additions
  • Loading branch information
SaicharanKandukuri authored Mar 29, 2024
2 parents 0c1437c + dbb9c6e commit 783b721
Show file tree
Hide file tree
Showing 13 changed files with 251 additions and 311 deletions.
98 changes: 0 additions & 98 deletions .github/scripts/build-kinetic.sh

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/build-udroid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,3 @@ jobs:
with:
name: jammy-raw-amd64
path: jammy-amd64
BuildKineticRaw:
name: build Kinetc (22.10)
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3

- name: Docker Setup QEMU
uses: docker/setup-qemu-action@v2

- name: Satify Dependencies
run: sudo apt-get update; sudo apt-get install git build-essential binfmt-support qemu-user-static debootstrap -y

- name: Trigger fs-cook
run: sudo bash .github/scripts/build-kinetic.sh

- name: save arm64 builds
uses: actions/upload-artifact@v2
with:
name: kinetic-raw-arm64
path: kinetic-arm64

- name: save armhf builds
uses: actions/upload-artifact@v2
with:
name: kinetic-raw-armhf
path: kinetic-armhf

- name: save amd64 builds
uses: actions/upload-artifact@v2
with:
name: kinetic-raw-amd64
path: kinetic-amd64
16 changes: 8 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ fs-cooks uses debootstrap to pull core Linux packages to build linux traballs, a
the top-level contains some example build scripts which are lightweight to build and beginning of directories
```
.
├── build-hirsute-raw.sh -> cook.sh
├── build-impish-raw.sh
├── build-jammy.sh -> cook.sh
├── cook.sh
├── build
├── core
Expand All @@ -26,8 +25,6 @@ here:
<hr>

**important files/folders to notice**
###### `~/core/defaults`
defaults folder contains some heavy templates to build DE ready tarballs like mate,xfce4,kde
###### `~/plugins/envsetup`
contains functions that can be used for cmd line building and integrating in scripts
- useful functions in `envsetup`:
Expand All @@ -50,12 +47,11 @@ do_build "out/udroid-test" "arm64"
```bash
source plugins/envsetup
SUITE=impish
SUITE=jammy
do_build "out/fs" "arm64"
```
### Quick build scripts
- `build-impish-raw.sh`: to build raw ubuntu 21.10 tarballs
- `build-hirsute-raw.sh`: to build raw ubuntu 21.04 tarballs
- `build-jammy.sh`: to build raw ubuntu 22.04 tarballs
> others are experimental ( may break things )
### functions ( <kbd>v1.0</kbd> )
Expand All @@ -74,11 +70,15 @@ do_build "out/fs" "arm64"
- `do_second_stage()`: if foreign arch triggers second stage
- - `do_qemu_user_emulation()` sets up qemu binaries in chroot
- `do_chroot_ae()`: to run command in chroot
- - `run_cmd()`: alternative for `do_chroot_are()`
- - `do_chroot_proot_ae` : use **proot** instead of chroot in termux
- - `run_cmd()`: alternative for `do_chroot_ae()`
- - `run_shell_script()` : to run a specific script, alternative for `do_chroot_ae()`
- - `install_pkg()` : to install a specific package inside chroot, alternative for `do_chroot_ae()`
- `do_compress()`: takes care of compressing tarballs without messy device file
- - `do_tar_gzip()`: to compress in gzip format
- - `do_tar_bzip()`: to compress in bzip format
- - `do_tar_lz4()`: to compress in lzip/lz4 format
- - `do_tar_zstd()` : to compress in zstd format
- `arch_translate()`: takes care of translating arch to find qemu static builds
- `COPY()`: to copy files to target filesystem
- `die()`: to echo an error message & exit if `ENABLE_EXIT` is set to true
Expand Down
2 changes: 1 addition & 1 deletion build-jammy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ do_unmount "${frn}-armhf"
do_unmount "${frn}-amd64"

shout "Build Complete.."
ls ${frn}*tar*
ls ${frn}*.*
82 changes: 0 additions & 82 deletions build-kinetic.sh

This file was deleted.

2 changes: 1 addition & 1 deletion cook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ do_unmount "${frn}-armhf"
do_unmount "${frn}-amd64"

shout "Build Complete.."
ls ${frn}*tar*
ls ${frn}*.*
Loading

0 comments on commit 783b721

Please sign in to comment.