Skip to content

Commit 8ef4197

Browse files
committed
08.export-stage/03.generate-license: Update LICENSE file
Check if linux_image_ADI-scripts is installed before converting license to HTML. Signed-off-by: mlradu <larisa.radu@analog.com>
1 parent 0e273cd commit 8ef4197

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stages/08.export-stage/03.generate-license/run-chroot.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,10 @@ if [ "${CONFIG_GRM2K}" = y ]; then
310310
html_pre_file /usr/local/src/gr-m2k/COPYING gr-m2k
311311
fi
312312

313-
package_table_items $((var++)) "linux_image_ADI-scripts" " " "GPL-3.0" "https://github.com/analogdevicesinc/linux_image_ADI-scripts"
314-
html_pre_file /usr/local/src/linux_image_ADI-scripts/LICENSE linux_image_ADI-scripts
313+
if [ "${CONFIG_LINUX_SCRIPTS}" = y ]; then
314+
package_table_items $((var++)) "linux_image_ADI-scripts" " " "GPL-3.0" "https://github.com/analogdevicesinc/linux_image_ADI-scripts"
315+
html_pre_file /usr/local/src/linux_image_ADI-scripts/LICENSE linux_image_ADI-scripts
316+
fi
315317

316318
dpkg -l | awk '/ii/ { print $2 " " $3 }' | while read -r line
317319
do

0 commit comments

Comments
 (0)