Files
xen/tools/firmware/rombios/32bit/Makefile
T
Andrew Cooper 5ddac3c285 rombios: Remove the use of egrep
As the Alpine 3.18 container notes:

  egrep: warning: egrep is obsolescent; using grep -E

Adjust it.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
2023-08-18 14:25:55 +01:00

36 lines
934 B
Makefile

XEN_ROOT = $(CURDIR)/../../../..
include $(XEN_ROOT)/tools/firmware/Rules.mk
TARGET = 32bitbios_flat.h
CFLAGS += $(CFLAGS_xeninclude) -I.. -I../../../libacpi
$(call cc-option-add,CFLAGS,CC,-fno-pic)
$(call cc-option-add,CFLAGS,CC,-fno-PIE)
SUBDIRS = tcgbios
.PHONY: all
all: subdirs-all
$(MAKE) $(TARGET)
.PHONY: clean
clean: subdirs-clean
rm -rf *.o $(TARGET) $(DEPS_RM)
.PHONY: distclean
distclean: subdirs-distclean
$(TARGET): 32bitbios_all.o
sh mkhex highbios_array 32bitbios_all.o > $@
32bitbios_all.o: 32bitbios.o tcgbios/tcgbiosext.o util.o pmm.o
$(LD) $(LDFLAGS_DIRECT) -s -r $^ -o 32bitbios_all.o
@nm 32bitbios_all.o | \
grep -E '^ +U ' >/dev/null && { \
echo "There are undefined symbols in the BIOS:"; \
nm -u 32bitbios_all.o; \
exit 11; \
} || :
-include $(DEPS_INCLUDE)