@@ -4288,6 +4288,7 @@ case "$target_name" in
;;
sparc64)
TARGET_BASE_ARCH=sparc
+ kconfig_subdirs="$kconfig_subdirs sparc64"
;;
sparc32plus)
TARGET_ARCH=sparc64
@@ -4311,6 +4312,7 @@ if [ "$TARGET_BASE_ARCH" = "" ]; then
TARGET_BASE_ARCH=$TARGET_ARCH
fi
+kconfig_subdirs="$kconfig_subdirs $TARGET_BASE_ARCH"
symlink "$source_path/Makefile.target" "$target_dir/Makefile"
upper() {
@@ -4494,6 +4496,15 @@ echo "QEMU_CFLAGS+=$cflags" >> $config_target_mak
done # for target in $targets
+# Generate Kconfig.targets
+kconfig_targets="Kconfig.targets"
+kconfig_subdirs=$(echo $kconfig_subdirs | tr ' ' '\n' | sort -u | tr '\n' ' ')
+echo "# Automatically generated by configure - do not modify" > $kconfig_targets
+
+for i in $kconfig_subdirs ; do
+ echo "source \"hw/$i/Kconfig\"" >> $kconfig_targets
+done
+
if [ "$pixman" = "internal" ]; then
echo "config-host.h: subdir-pixman" >> $config_host_mak
fi
Signed-off-by: Ákos Kovács <akoskovacs@gmx.com> --- configure | 11 +++++++++++ 1 file changed, 11 insertions(+)