Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove in-tree libfdt, rely on system-installed libfdt #1536

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
/* Executable name of device-tree-compiler */
#undef DTC

/* Define if subproject MCPPBS_SPROJ_NORM is enabled */
#undef FDT_ENABLED

/* Define if subproject MCPPBS_SPROJ_NORM is enabled */
#undef FESVR_ENABLED

Expand Down Expand Up @@ -51,6 +48,9 @@
/* Define to 1 if you have the `boost_system' library (-lboost_system). */
#undef HAVE_LIBBOOST_SYSTEM

/* Define to 1 if you have the `fdt' library (-lfdt). */
#undef HAVE_LIBFDT

/* Define to 1 if you have the `pthread' library (-lpthread). */
#undef HAVE_LIBPTHREAD

Expand Down
86 changes: 40 additions & 46 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -5869,6 +5869,46 @@ _ACEOF
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfdt" >&5
$as_echo_n "checking for main in -lfdt... " >&6; }
if ${ac_cv_lib_fdt_main+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lfdt $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */


int
main ()
{
return main ();
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
ac_cv_lib_fdt_main=yes
else
ac_cv_lib_fdt_main=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdt_main" >&5
$as_echo "$ac_cv_lib_fdt_main" >&6; }
if test "x$ac_cv_lib_fdt_main" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBFDT 1
_ACEOF

LIBS="-lfdt $LIBS"

fi



# Check whether --with-isa was given.
if test "${with_isa+set}" = set; then :
Expand Down Expand Up @@ -6176,51 +6216,6 @@ $as_echo "#define CUSTOMEXT_ENABLED /**/" >>confdefs.h



# Add subproject to our running list

subprojects="$subprojects fdt"

# Process the subproject appropriately. If enabled add it to the
# $enabled_subprojects running shell variable, set a
# SUBPROJECT_ENABLED C define, and include the appropriate
# 'subproject.ac'.


{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : fdt" >&5
$as_echo "$as_me: configuring default subproject : fdt" >&6;}
ac_config_files="$ac_config_files fdt.mk:fdt/fdt.mk.in"

enable_fdt_sproj="yes"
subprojects_enabled="$subprojects_enabled fdt"

$as_echo "#define FDT_ENABLED /**/" >>confdefs.h






# Determine if this is a required or an optional subproject



# Determine if there is a group with the same name



# Create variations of the subproject name suitable for use as a CPP
# enabled define, a shell enabled variable, and a shell function











# Add subproject to our running list

subprojects="$subprojects softfloat"
Expand Down Expand Up @@ -7062,7 +7057,6 @@ do
"riscv.mk") CONFIG_FILES="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
"disasm.mk") CONFIG_FILES="$CONFIG_FILES disasm.mk:disasm/disasm.mk.in" ;;
"customext.mk") CONFIG_FILES="$CONFIG_FILES customext.mk:customext/customext.mk.in" ;;
"fdt.mk") CONFIG_FILES="$CONFIG_FILES fdt.mk:fdt/fdt.mk.in" ;;
"softfloat.mk") CONFIG_FILES="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
"spike_main.mk") CONFIG_FILES="$CONFIG_FILES spike_main.mk:spike_main/spike_main.mk.in" ;;
"spike_dasm.mk") CONFIG_FILES="$CONFIG_FILES spike_dasm.mk:spike_dasm/spike_dasm.mk.in" ;;
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ AX_CHECK_COMPILE_FLAG([-relocatable-pch], AC_SUBST([HAVE_CLANG_PCH],[yes]))
# The '*' suffix indicates an optional subproject. The '**' suffix
# indicates an optional subproject which is also the name of a group.

MCPPBS_SUBPROJECTS([ fesvr, riscv, disasm, customext, fdt, softfloat, spike_main, spike_dasm ])
MCPPBS_SUBPROJECTS([ fesvr, riscv, disasm, customext, softfloat, spike_main, spike_dasm ])

#-------------------------------------------------------------------------
# MCPPBS subproject groups
Expand Down
Empty file removed fdt/fdt.ac
Empty file.
Loading
Loading