-update:
- dongle.py -c /dev/term/1 $(obj)/coreboot.rom EOF
-
-lint:
- FAILED=0; LINTLOG=`mktemp`; \
- for script in util/lint/lint-*; do \
- echo; echo `basename $$script`; \
- grep "^# DESCR:" $$script | sed "s,.*DESCR: *,," ; \
- echo ========; \
- $$script > $$LINTLOG; \
- if [ `wc -l $$LINTLOG | cut -d' ' -f1` -eq 0 ]; then \
- printf "success\n\n"; \
- else \
- echo test failed: ; \
- cat $$LINTLOG; \
- rm -f $$LINTLOG; \
- FAILED=$$(( $$FAILED + 1 )); \
- fi; \
- echo ========; \
- done; \
- test $$FAILED -eq 0 || { echo "ERROR: $$FAILED test(s) failed." && exit 1; }; \
- rm -f $$LINTLOG
-
-# This include must come _before_ the pattern rules below!
-# Order _does_ matter for pattern rules.
-include util/kconfig/Makefile
-
-$(obj)/ldoptions: $(obj)/config.h
- awk '/^#define ([^"])* ([^"])*$$/ {gsub("\\r","",$$3); print $$2 " = " $$3 ";";}' $< > $@
-
-_WINCHECK=$(shell uname -o 2> /dev/null)
-STACK=
-ifeq ($(_WINCHECK),Msys)
- STACK=-Wl,--stack,16384000
-endif
-ifeq ($(_WINCHECK),Cygwin)
- STACK=-Wl,--stack,16384000
-endif
-
-$(objutil)/romcc/romcc: $(top)/util/romcc/romcc.c
- @printf " HOSTCC $(subst $(obj)/,,$(@)) (this may take a while)\n"
- @# Note: Adding -O2 here might cause problems. For details see:
- @# http://www.coreboot.org/pipermail/coreboot/2010-February/055825.html
- $(HOSTCC) -g $(STACK) -Wall -o $@ $<
-
-.PHONY: $(PHONY) clean clean-abuild clean-cscope cscope distclean doxygen doxy coreboot .xcompile
-