mirror of
https://git.yoctoproject.org/poky
synced 2026-02-27 11:59:40 +01:00
i2c-tools has been sitting outside of oe-core for long enough now. It is a required tool for board validation, and many people are pulling it into their builds and their own layers. Let's add it to the core. This patch includes the i2c-tools recipe from meta-oe as of: commit 9df13b4140e8c6bfa0e4fb89107a6146981d2cdc Author: Khem Raj <raj.khem@gmail.com> Date: 2014-04-26 i2c-tools: Fix build when S != B (From OE-Core rev: 32ac58819580d359e22161be1abf62215d202250) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Khem Raj <raj.khem@gmail.com> Cc: Martin Jansa <Martin.Jansa@gmail.com> Cc: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Cc: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
73 lines
1.8 KiB
Makefile
73 lines
1.8 KiB
Makefile
# EEPROMER
|
|
#
|
|
# Licensed under the GNU General Public License.
|
|
|
|
EEPROMER_DIR := eepromer
|
|
|
|
EEPROMER_CFLAGS := -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \
|
|
-Wcast-align -Wwrite-strings -Wnested-externs -Winline \
|
|
-W -Wundef -Wmissing-prototypes -Iinclude
|
|
|
|
EEPROMER_TARGETS := eepromer eeprom eeprog
|
|
|
|
#
|
|
# Programs
|
|
#
|
|
|
|
$(EEPROMER_DIR)/eepromer: $(EEPROMER_DIR)/eepromer.o
|
|
$(CC) $(LDFLAGS) -o $@ $^
|
|
|
|
$(EEPROMER_DIR)/eeprom: $(EEPROMER_DIR)/eeprom.o
|
|
$(CC) $(LDFLAGS) -o $@ $^
|
|
|
|
$(EEPROMER_DIR)/eeprog: $(EEPROMER_DIR)/eeprog.o $(EEPROMER_DIR)/24cXX.o
|
|
$(CC) $(LDFLAGS) -o $@ $^
|
|
|
|
#
|
|
# Objects
|
|
#
|
|
|
|
$(EEPROMER_DIR)/eepromer.o: $(EEPROMER_DIR)/eepromer.c
|
|
$(CC) $(CFLAGS) $(EEPROMER_CFLAGS) -c $< -o $@
|
|
|
|
$(EEPROMER_DIR)/eeprom.o: $(EEPROMER_DIR)/eeprom.c
|
|
$(CC) $(CFLAGS) $(EEPROMER_CFLAGS) -c $< -o $@
|
|
|
|
$(EEPROMER_DIR)/eeprog.o: $(EEPROMER_DIR)/eeprog.c
|
|
$(CC) $(CFLAGS) $(EEPROMER_CFLAGS) -c $< -o $@
|
|
|
|
$(EEPROMER_DIR)/24cXX.o: $(EEPROMER_DIR)/24cXX.c
|
|
$(CC) $(CFLAGS) $(EEPROMER_CFLAGS) -c $< -o $@
|
|
|
|
#
|
|
# Commands
|
|
#
|
|
|
|
all-eepromer: $(addprefix $(EEPROMER_DIR)/,$(EEPROMER_TARGETS))
|
|
|
|
strip-eepromer: $(addprefix $(EEPROMER_DIR)/,$(EEPROMER_TARGETS))
|
|
strip $(addprefix $(EEPROMER_DIR)/,$(EEPROMER_TARGETS))
|
|
|
|
clean-eepromer:
|
|
$(RM) $(addprefix $(EEPROMER_DIR)/,*.o $(EEPROMER_TARGETS))
|
|
|
|
install-eepromer: $(addprefix $(EEPROMER_DIR)/,$(EEPROMER_TARGETS))
|
|
$(INSTALL_DIR) $(DESTDIR)$(sbindir) $(DESTDIR)$(man8dir)
|
|
for program in $(EEPROMER_TARGETS) ; do \
|
|
$(INSTALL_PROGRAM) $(EEPROMER_DIR)/$$program $(DESTDIR)$(sbindir) ; done
|
|
|
|
uninstall-eepromer:
|
|
for program in $(EEPROMER_TARGETS) ; do \
|
|
$(RM) $(DESTDIR)$(sbindir)/$$program ; \
|
|
$(RM) $(DESTDIR)$(man8dir)/$$program.8 ; done
|
|
|
|
all: all-eepromer
|
|
|
|
strip: strip-eepromer
|
|
|
|
clean: clean-eepromer
|
|
|
|
install: install-eepromer
|
|
|
|
uninstall: uninstall-eepromer
|