From 1ed640da24eb97255328c4498035ba524f6265fc Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 4 Oct 2023 08:51:10 -0400 Subject: [Feature] db_commit plugin allows a more verbose commit prints logf messages to the screen buffer and dumps the output to .rockbox/db_commit_log.txt logs warnings about tags that can't be displayed by the current font adds an option to the tagcache using the file .rockbox/database_commit.ignore to prevent auto commit Change-Id: Ib381b3b6d9dd19d76c95d0e87e605f7378e29674 --- apps/plugins/tagcache/tagcache.make | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 apps/plugins/tagcache/tagcache.make (limited to 'apps/plugins/tagcache/tagcache.make') diff --git a/apps/plugins/tagcache/tagcache.make b/apps/plugins/tagcache/tagcache.make new file mode 100644 index 0000000000..5d6d65cb0e --- /dev/null +++ b/apps/plugins/tagcache/tagcache.make @@ -0,0 +1,30 @@ +# __________ __ ___. +# Open \______ \ ____ ____ | | _\_ |__ _______ ___ +# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +# \/ \/ \/ \/ \/ +# $Id$ +# + +TCPLUG_SRCDIR := $(APPSDIR)/plugins/tagcache +TCPLUG_BUILDDIR := $(BUILDDIR)/apps/plugins/tagcache + +ROCKS += $(TCPLUG_BUILDDIR)/db_commit.rock + +TCPLUG_FLAGS = $(PLUGINFLAGS) -fno-strict-aliasing -Wno-unused \ + -I$(TCPLUG_SRCDIR) -ffunction-sections \ + -fdata-sections -Wl,--gc-sections +TCPLUG_SRC := $(call preprocess, $(TCPLUG_SRCDIR)/SOURCES) +TCPLUG_OBJ := $(call c2obj, $(TCPLUG_SRC)) + +# add source files to OTHER_SRC to get automatic dependencies +OTHER_SRC += $(APPSDIR)/tagcache.c $(TCPLUG_SRC) + +$(TCPLUG_BUILDDIR)/db_commit.rock: $(TCPLUG_OBJ) + +# special pattern rule for compiling with extra flags +$(TCPLUG_BUILDDIR)/%.o: $(TCPLUG_SRCDIR)/%.c $(TCPLUG_SRCDIR)/tagcache.make + $(SILENT)mkdir -p $(dir $@) + $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(TCPLUG_FLAGS) -c $< -o $@ + -- cgit v1.2.3