Skip to content

Commit 6c22853

Browse files
committed
meson.build: Don't use internal libfdt if the user requested the system libfdt
If the users ran configure with --enable-libfdt=system, they likely did that on purpose. We should not silently fall back to the internal libfdt if the system libfdt is not usable, but report the problem with a proper message instead. Message-Id: <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Marc-André Lureau <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent 87daf89 commit 6c22853

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,8 @@ if have_system
19121912
int main(void) { fdt_check_full(NULL, 0); return 0; }''',
19131913
dependencies: fdt)
19141914
fdt_opt = 'system'
1915+
elif fdt_opt == 'system'
1916+
error('system libfdt requested, but it is too old (1.5.1 or newer required)')
19151917
elif have_internal
19161918
fdt_opt = 'internal'
19171919
else

0 commit comments

Comments
 (0)