mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
Add santity checks in 'tool/tool_chain', fix #62
In addition to autogen and autoconf, the tool-chain build script requires ncurses (for building GDB), wget (to download the tool-chain source code), and texinfo. Let the tool check if these packages are installed instead of failing later during the build.
This commit is contained in:
parent
8dd9c48a1a
commit
26915c14b7
@ -96,12 +96,39 @@ ifeq ($(AUTOCONF),)
|
||||
$(error Unknown autoconf version for GCC $(GCC_VERSION).)
|
||||
endif
|
||||
|
||||
#
|
||||
# Check if 'autoconf' is installed
|
||||
#
|
||||
ifeq ($(shell which $(AUTOCONF)),)
|
||||
$(error Need to have $(AUTOCONF) installed.)
|
||||
$(error Need to have '$(AUTOCONF)' installed.)
|
||||
endif
|
||||
|
||||
#
|
||||
# Check if 'libncurses' is installed
|
||||
#
|
||||
ifneq ($(shell $(LD) -lncurses -e0 -o /tmp/a.out && echo ok),ok)
|
||||
$(error Need to have 'libncurses' installed.)
|
||||
endif
|
||||
|
||||
#
|
||||
# Check if 'texinfo' is installed
|
||||
#
|
||||
ifeq ($(shell which texi2pdf),)
|
||||
$(error Need to have 'texinfo' installed.)
|
||||
endif
|
||||
|
||||
#
|
||||
# Check if 'wget' is installed
|
||||
#
|
||||
ifeq ($(shell which wget),)
|
||||
$(error Need to have 'wget' installed.)
|
||||
endif
|
||||
|
||||
#
|
||||
# Check if 'autogen' is installed
|
||||
#
|
||||
ifeq ($(shell which autogen)),)
|
||||
$(error Need to have autogen installed.)
|
||||
$(error Need to have 'autogen' installed.)
|
||||
endif
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user