Tweak firmware-image build scripts
Add more debug to generate_firmware_patterns when called with -v Make make-firmware-image more robust, I hope?
This commit is contained in:
parent
80f7fa39ff
commit
ecb6ec4a0a
|
@ -158,6 +158,9 @@ sub generate_patterns_for_firmware_sof_intel_workaround {
|
|||
}
|
||||
|
||||
|
||||
print STDERR "Looking up patterns for package $pkgname\n"
|
||||
if $verbose;
|
||||
|
||||
# Make sure the output directory exists:
|
||||
die "missing output directory $output_dir"
|
||||
if ! -d $output_dir;
|
||||
|
@ -175,3 +178,6 @@ foreach my $components (@ARGV) {
|
|||
# Only apply the workaround when relevant:
|
||||
generate_patterns_for_firmware_sof_intel_workaround()
|
||||
if ! $done and $pkgname eq $SOF;
|
||||
|
||||
print STDERR "Done with package $pkgname\n"
|
||||
if $verbose;
|
||||
|
|
|
@ -62,8 +62,12 @@ $BASEDIR/tools/generate_firmware_task '*' --list-filenames-and-indices | sort -u
|
|||
# Mimic make_disc_trees.pl, except it only passes a single Components-<arch>.yml.gz while
|
||||
# we pass all of them. Differences are unlikely though, as interesting firmware packages
|
||||
# are "Architecture: all".
|
||||
$BASEDIR/tools/generate_firmware_patterns --output-dir $FW_DEP11_DIR --package $PACKAGE $DEP11_DIR/Components-*.yml.gz
|
||||
[ -f $FW_DEP11_DIR/$PACKAGE.patterns ] && printf $COMPONENT > $FW_DEP11_DIR/$PACKAGE.component
|
||||
$BASEDIR/tools/generate_firmware_patterns \
|
||||
-v --output-dir $FW_DEP11_DIR \
|
||||
--package $PACKAGE $DEP11_DIR/Components-*.yml.gz
|
||||
if [ -f $FW_DEP11_DIR/$PACKAGE.patterns ]; then
|
||||
printf "%s\n" $COMPONENT > $FW_DEP11_DIR/$PACKAGE.component
|
||||
fi
|
||||
done
|
||||
|
||||
cd $TMPDIR/firmware
|
||||
|
|
Loading…
Reference in New Issue