File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -128,3 +128,11 @@ menu "Live環境の設定"
128128 config IMAGE_OWNER
129129 string "イメージファイルの所有者名"
130130endmenu
131+ menu "その他ビルド設定"
132+ config USE_CUSTOM_WORK
133+ bool "カスタムワークディレクトリを使用する"
134+ if USE_CUSTOM_WORK
135+ config CUSTOM_WORKDIR
136+ string "ワークディレクトリ"
137+ endif
138+ endmenu
Original file line number Diff line number Diff line change @@ -64,6 +64,11 @@ if [[ $USE_CUSTOM_LANG = "true" ]]; then
6464 buf=` grep CONFIG_CUSTOM_LANGUAGE .config | sed -e ' s/CONFIG_CUSTOM_LANGUAGE/language/g' `
6565 eval " ${buf} "
6666fi
67+ eval " ${buf,,} "
68+ if [[ $USE_CUSTOM_WORK = " true" ]]; then
69+ buf=` grep CONFIG_CUSTOM_WORKDIR .config | sed -e ' s/CONFIG_CUSTOM_WORKDIR/workdir/g' `
70+ eval " ${buf} "
71+ fi
6772
6873echo build option :
6974 [[ -n " ${language} " ]] && echo " Language : ${language} "
@@ -74,6 +79,7 @@ echo build option :
7479 [[ -n " ${username} " ]] && echo " Username : ${username} "
7580 [[ -n " ${password} " ]] && echo " Password : ${password} "
7681 [[ -n " ${channel} " ]] && echo " Channel : ${channel} "
82+ [[ -n " ${workdir} " ]] && echo " Work : ${workdir} "
7783
7884if [[ " ${USE_CUSTOM_LANG} " = " true" ]]; then
7985 argument=" ${argument} -l ${language} "
96102if [[ -n " ${out_dir} " ]]; then
97103 argument=" ${argument} -o '${out_dir} '"
98104fi
105+ if [[ -n " ${workdir} " ]]; then
106+ argument=" ${argument} -w '${workdir} '"
107+ fi
99108argument=" -a ${build_arch} --noconfirm ${argument} ${channel} "
100109echo " ${argument} " > " ${1} "
You can’t perform that action at this time.
0 commit comments