Skip to content

Add optional gcc6 argument to envkernel.sh

Administrator requested to merge envkernel-gcc6 into master

Add simple argument parsing:

$ source ~/pmbootstrap/helpers/envkernel.sh --help
usage: envkernel.sh
optional arguments:
    --fish        Print fish alias syntax
    --gcc6        Use GCC6 cross compiler
    --help        Show this help message

Optionally using GCC6:

$ source ~/pmbootstrap/helpers/envkernel.sh
pmbootstrap envkernel.sh activated successfully.
 * kernel source:  /home/r/git/android_kernel_samsung_p4
 * output folder:  /home/r/git/android_kernel_samsung_p4/.output
 * architecture:   arm (samsung-i9100 is armhf)
 * cross compile:  armv6-alpine-linux-muslgnueabihf-gcc (Alpine 8.2.0)
 * aliases: make, kernelroot, pmbootstrap, pmbroot (see 'type make' etc.)
$ source ~/pmbootstrap/helpers/envkernel.sh --gcc6
Initializing Alpine chroot (details: 'pmbootstrap log')
pmbootstrap envkernel.sh activated successfully.
 * kernel source:  /home/r/git/android_kernel_samsung_p4
 * output folder:  /home/r/git/android_kernel_samsung_p4/.output
 * architecture:   arm (samsung-i9100 is armhf)
 * cross compile:  gcc6-armv6-alpine-linux-muslgnueabihf-gcc (postmarketOS 6.4.0)
 * aliases: make, kernelroot, pmbootstrap, pmbroot (see 'type make' etc.)

Merge request reports

Loading