1
0

release 6.15.7

This commit is contained in:
2025-07-17 22:56:59 +03:00
parent 01b98c3c62
commit 48372baf14
20 changed files with 212 additions and 190 deletions

View File

@@ -0,0 +1,22 @@
include $(top_rulesdir)/Makefile.inc
# bootconfig does not support appending user CFLAGS or LDFLAGS,
# so we have to specify the include directory too.
MAKE_BOOTCONFIG := $(MAKE) -C $(top_srcdir)/tools/bootconfig \
O=$(CURDIR) \
CFLAGS='$(CFLAGS) $(CPPFLAGS) -Iinclude $(LDFLAGS)'
# Default target (all) includes running tests. If this is not wanted
# (e.g. for cross-builds), build the bootconfig target instead.
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
BUILD_TARGET := all
else
BUILD_TARGET := $(CURDIR)/bootconfig
endif
all:
$(MAKE_BOOTCONFIG) $(BUILD_TARGET)
install:
mkdir -p $(DESTDIR)/usr/bin
$(MAKE_BOOTCONFIG) install

View File

@@ -0,0 +1,5 @@
PROGS = ihex2fw
installdir = /usr/bin
include $(top_rulesdir)/Makefile.inc

43
debian/rules.d/tools/thermal/Makefile vendored Normal file
View File

@@ -0,0 +1,43 @@
srcdir := $(top_srcdir)/tools/thermal
include $(top_rulesdir)/Makefile.inc
MAKE_THERMAL_LIB = $(MAKE) -C $(srcdir)/lib \
O=$(CURDIR)/lib \
EXTRA_CFLAGS='$(CFLAGS) $(CPPFLAGS)' \
LDFLAGS='$(LDFLAGS)' \
SRCARCH=$(ARCH) \
V=1
# thermometer does not support OOT build, so we copy the
# source before building.
# thermometer does not support appending user CFLAGS or LDFLAGS,
# so we have to specify the include directory and libraries too.
# Use the static libthermal_tools so we don't have to support it
# as a shared library.
MAKE_THERMOMETER = $(MAKE) -C thermometer \
CC='$(CC)' CFLAGS='$(CFLAGS) $(CPPFLAGS) -I$(srcdir)/lib' \
LD='$(CROSS_COMPILE)-ld' LDFLAGS='$(LDFLAGS) $(CURDIR)/lib/libthermal_tools.a -lconfig'
# tmon does not support OOT build, so we copy the source before
# building. Use the make -I option to allow it to include other
# Makefiles in the source tree.
# tmon expects us to set INSTALL_ROOT instead of DESTDIR (?!).
MAKE_TMON = $(MAKE) -C tmon -I $(srcdir)/tmon \
INSTALL_ROOT=$(DESTDIR) \
CC='$(CC)' CFLAGS='$(CFLAGS) $(CPPFLAGS)' \
LDFLAGS='$(LDFLAGS)'
all:
mkdir -p lib
rsync -a $(srcdir)/thermometer $(srcdir)/tmon .
# We do not want a shared library, and the shared library link does
# not include LDFLAGS so blhc will complain about it
$(MAKE_THERMAL_LIB) fixdep
$(MAKE_THERMAL_LIB) $(CURDIR)/lib/libthermal_tools.a
$(MAKE_THERMOMETER)
$(MAKE_TMON)
install:
install -D -m755 thermometer/thermometer $(DESTDIR)/usr/bin/
$(MAKE_TMON) install