summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2022-03-17 13:41:17 +0100
committerNico Huber <nico.h@gmx.de>2022-04-12 09:55:57 +0000
commitb1db7e4367e3e34140ee12447d7692019d33007a (patch)
treec8a4746d79a4c19841119bccf4c21d93e329e79e /Makefile
parent6272c71fbbfb26ebde9954708f74f875c083f822 (diff)
downloadflashrom-b1db7e4367e3e34140ee12447d7692019d33007a.tar.gz
flashrom-b1db7e4367e3e34140ee12447d7692019d33007a.tar.bz2
flashrom-b1db7e4367e3e34140ee12447d7692019d33007a.zip
Endian conversion: move to platform.h and platform/endian*.c
Starting to move the platform dependent code to platform/ and provide the abstraction through the platform.h header. Change-Id: I35640282d451960f2a329ae24339ec05dbae6d30 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/62899 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0e6be2059..f94f04688 100644
--- a/Makefile
+++ b/Makefile
@@ -378,7 +378,7 @@ CHIP_OBJS = jedec.o stm50.o w39.o w29ee011.o \
# Library code.
LIB_OBJS = libflashrom.o layout.o flashrom.o udelay.o programmer.o programmer_table.o \
- helpers.o ich_descriptors.o fmap.o hwaccess_endian_$(ENDIAN).o
+ helpers.o ich_descriptors.o fmap.o platform/endian_$(ENDIAN).o
###############################################################################
@@ -977,7 +977,8 @@ strip: $(PROGRAM)$(EXEC_SUFFIX)
# This includes all frontends and libflashrom.
# We don't use EXEC_SUFFIX here because we want to clean everything.
clean:
- rm -f $(PROGRAM) $(PROGRAM).exe libflashrom.a $(filter-out Makefile.d, $(wildcard *.d *.o)) $(PROGRAM).8 $(PROGRAM).8.html $(BUILD_DETAILS_FILE)
+ rm -f $(PROGRAM) $(PROGRAM).exe libflashrom.a $(filter-out Makefile.d, $(wildcard *.d *.o platform/*.d platform/*.o)) \
+ $(PROGRAM).8 $(PROGRAM).8.html $(BUILD_DETAILS_FILE)
@+$(MAKE) -C util/ich_descriptors_tool/ clean
install: $(PROGRAM)$(EXEC_SUFFIX) $(PROGRAM).8