mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Use common .gitignore suffix and gitignore* prefix for most ignores
This commit is contained in:
14
build
14
build
@@ -3,8 +3,8 @@ set -eu
|
||||
help_text='
|
||||
'
|
||||
arch=x86_64
|
||||
rm -f br2_cli
|
||||
touch br2_cli
|
||||
rm -f br2_cli.gitignore
|
||||
touch br2_cli.gitignore
|
||||
configure=true
|
||||
config_fragments='br2'
|
||||
extra_make_args=''
|
||||
@@ -23,7 +23,7 @@ while getopts 'a:b:c:Cgj:IiK:klp:qSv' OPT; do
|
||||
config_fragments="$config_fragments $OPTARG"
|
||||
;;
|
||||
c)
|
||||
echo "$OPTARG" >> br2_cli
|
||||
echo "$OPTARG" >> br2_cli.gitignore
|
||||
;;
|
||||
C)
|
||||
configure=false
|
||||
@@ -36,17 +36,17 @@ while getopts 'a:b:c:Cgj:IiK:klp:qSv' OPT; do
|
||||
BR2_TARGET_ROOTFS_CPIO=n
|
||||
BR2_TARGET_ROOTFS_EXT2=n
|
||||
BR2_TARGET_ROOTFS_INITRAMFS=y
|
||||
" >> br2_cli
|
||||
" >> br2_cli.gitignore
|
||||
;;
|
||||
i)
|
||||
echo "
|
||||
BR2_TARGET_ROOTFS_CPIO=y
|
||||
BR2_TARGET_ROOTFS_EXT2=n
|
||||
BR2_TARGET_ROOTFS_INITRAMFS=n
|
||||
" >> br2_cli
|
||||
" >> br2_cli.gitignore
|
||||
;;
|
||||
j)
|
||||
echo "$OPTARG" >> br2_cli
|
||||
echo "$OPTARG" >> br2_cli.gitignore
|
||||
;;
|
||||
k)
|
||||
extra_make_args="$extra_make_args kernel_module-reconfigure"
|
||||
@@ -99,7 +99,7 @@ root_dir="$(pwd)"
|
||||
buildroot_dir="${root_dir}/buildroot"
|
||||
out_dir="${buildroot_dir}/output.${arch_dir}~"
|
||||
config_file="${out_dir}/.config"
|
||||
config_fragments="$config_fragments br2_cli"
|
||||
config_fragments="$config_fragments br2_cli.gitignore"
|
||||
|
||||
if "$configure"; then
|
||||
cd "${buildroot_dir}"
|
||||
|
||||
Reference in New Issue
Block a user