[riot-notifications] [RIOT-OS/RIOT] make: add blob utility header (#11870)

Kaspar Schleiser notifications at github.com
Tue Sep 10 13:54:17 CEST 2019


kaspar030 commented on this pull request.



> +# Add this to an application or module Makefile:
+#
+#     BLOBS += foo.ext
+#
+# Then include in C file or header:
+#
+#    #include "blob/foo.ext.h"
+#
+
+# use "blobs/blob" so the headers can be included as "blob/foo.h", but
+# we don't have to add $(BINDIR)/$(MODULE) to the include path.
+BLOB_HDR_DIR ?= $(BINDIR)/$(MODULE)/blobs/blob
+BLOB_H := $(BLOBS:%=$(BLOB_HDR_DIR)/%.h)
+
+ifneq (, $(BLOB_H))
+	# add $(BINDIR)/$(MODULE)/blobs to include path

fixed

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11870#discussion_r322698460
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190910/876e18e2/attachment.htm>


More information about the notifications mailing list