Merge commit '074b580797a148df769dea571db8508ed889710b' into dora
This commit is contained in:
commit
7e9fa46a9a
|
@ -3,11 +3,11 @@ LICENSE = "MIT"
|
|||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
ALLOW_EMPTY_${PN} = "1"
|
||||
PR = "r12"
|
||||
PR = "r13"
|
||||
|
||||
RDEPENDS_${PN} = "\
|
||||
task-sysmocom-tools \
|
||||
task-sysmocom-debug \
|
||||
minicom vlan patch procps psmisc \
|
||||
ppp rsync sed usbutils openvpn iperf \
|
||||
lcr cronie iproute2"
|
||||
lcr cronie iproute2 i2c-tools"
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
# source the sysvinit configuration file
|
||||
. /etc/syslog-startup.conf
|
||||
|
||||
# check if we want permanent log files and prepare /var/log
|
||||
if [ "${DESTINATION}" = "buffer" -a ! -h /var/log ]; then
|
||||
rm -rf /var/log
|
||||
cd /var
|
||||
ln -s volatile/log log
|
||||
elif [ "${DESTINATION}" = "file" -a -h "/var/log" ]; then
|
||||
rm -rf /var/log
|
||||
mkdir /var/log
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/busybox-${SYSMOCOM_ORIG_PV}:${SYSMOCOM}/files:"
|
||||
PRINC = "22"
|
||||
PRINC = "23"
|
||||
|
||||
SRC_URI += "file://busybox-ifplugd.sh \
|
||||
file://ifplugd.sh"
|
||||
|
|
|
@ -0,0 +1,72 @@
|
|||
# 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
|
|
@ -0,0 +1,34 @@
|
|||
UMMARY = "Set of i2c tools for linux"
|
||||
SECTION = "base"
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
|
||||
SRC_URI = "http://dl.lm-sensors.org/i2c-tools/releases/${BP}.tar.bz2 \
|
||||
file://Module.mk \
|
||||
"
|
||||
SRC_URI[md5sum] = "0fdbff53ebd0b8d9249256d6c56480b1"
|
||||
SRC_URI[sha256sum] = "14d4d7d60d1c12e43f2befe239c682a5c44c27682f153d4b58c1e392d2db1700"
|
||||
|
||||
inherit autotools
|
||||
|
||||
do_compile_prepend() {
|
||||
cp ${WORKDIR}/Module.mk ${S}/eepromer/
|
||||
sed -i 's#/usr/local#${exec_prefix}#' ${S}/Makefile
|
||||
echo "include eepromer/Module.mk" >> ${S}/Makefile
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${includedir}/linux
|
||||
install -m 0644 include/linux/i2c-dev.h ${D}${includedir}/linux/i2c-dev-user.h
|
||||
rm -f ${D}${includedir}/linux/i2c-dev.h
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-misc"
|
||||
FILES_${PN}-misc = "${sbindir}/i2c-stub-from-dump \
|
||||
${bindir}/ddcmon \
|
||||
${bindir}/decode-edid \
|
||||
${bindir}/decode-dimms \
|
||||
${bindir}/decode-vaio \
|
||||
"
|
||||
RRECOMMENDS_${PN} += "${PN}-misc"
|
||||
RDEPENDS_${PN}-misc += "perl"
|
Loading…
Reference in New Issue