Skip to content

Commit 3cc1ed0

Browse files
bradjcalevy
authored andcommitted
u8g2: add Makefile.version, update version
Update to a newer version that includes the fixes for include re-ordering.
1 parent 30c7f03 commit 3cc1ed0

File tree

4 files changed

+22
-15
lines changed

4 files changed

+22
-15
lines changed

u8g2/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# Git hash of the library to use
2-
VERSION_HASH := c4f9cd9f8717661c46be16bfbcb0017d785db3c1
1+
include Makefile.version
32

43
# Base folder definitions
54
TOCK_USERLAND_BASE_DIR ?= ..
65
LIBNAME := u8g2
76
$(LIBNAME)_DIR := $(TOCK_USERLAND_BASE_DIR)/$(LIBNAME)
8-
LIB_SRC_DIR := $($(LIBNAME)_DIR)/u8g2-$(VERSION_HASH)
7+
LIB_SRC_DIR := $($(LIBNAME)_DIR)/u8g2-$(U8G2_VERSION_HASH)
98

109
# List all C and Assembly files
1110
$(LIBNAME)_SRCS_ALL += $(wildcard $(LIB_SRC_DIR)/csrc/u8g2*.c)

u8g2/Makefile.app

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Git hash of the library to use. Must match the hash in Makefile.
2-
U8G2_VERSION_HASH := c4f9cd9f8717661c46be16bfbcb0017d785db3c1
1+
# Git hash of the library to use. Must match the hash in Makefile.version.
2+
U8G2_VERSION_HASH := bde09fbf787892c79a184e88b124aa5c79393aed
33

44
# Base folder definitions
55
U8G2_LIB_DIR := $(TOCK_USERLAND_BASE_DIR)/u8g2

u8g2/Makefile.setup

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,16 @@
22
### Helper Makefile for downloading the U8G2 library and unzipping.
33
###
44

5-
TOCK_USERLAND_BASE_DIR ?= ..
6-
7-
# Git hash of the library to use. Must match the hash in Makefile.
8-
U8G2_VERSION_HASH := c4f9cd9f8717661c46be16bfbcb0017d785db3c1
9-
10-
# Base folder definitions
11-
U8G2_LIB_DIR := $(TOCK_USERLAND_BASE_DIR)/u8g2
12-
U8G2_SRC_DIR := $(U8G2_LIB_DIR)/u8g2-$(U8G2_VERSION_HASH)
5+
include Makefile.version
136

147
# Rules to download the source repository if needed. These are here so that the
158
# expanded library is available before calling into the library Makefile.
169
$(U8G2_SRC_DIR).zip:
1710
curl -L --output $(U8G2_SRC_DIR).zip https://codeload.github.com/olikraus/u8g2/zip/$(U8G2_VERSION_HASH)
1811

1912
# The .h file will exist when the library is unzipped.
20-
$(U8G2_SRC_DIR)/csrc/u8g2.h: | $(U8G2_SRC_DIR).zip
13+
$(U8G2_SENTINEL_FILE): | $(U8G2_SRC_DIR).zip
2114
unzip -q -d $(U8G2_LIB_DIR) $(U8G2_SRC_DIR).zip
2215

2316
# Main rule to check if we need to fetch the library.
24-
all: | $(U8G2_SRC_DIR)/csrc/u8g2.h
17+
all: | $(U8G2_SENTINEL_FILE)

u8g2/Makefile.version

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
###
2+
### Helper Makefile for the version of the library.
3+
###
4+
5+
TOCK_USERLAND_BASE_DIR ?= ..
6+
7+
# Git hash of the library to use. Must match the hash in Makefile.
8+
U8G2_VERSION_HASH := bde09fbf787892c79a184e88b124aa5c79393aed
9+
10+
# Base folder definitions
11+
U8G2_LIB_DIR := $(TOCK_USERLAND_BASE_DIR)/u8g2
12+
U8G2_SRC_DIR := $(U8G2_LIB_DIR)/u8g2-$(U8G2_VERSION_HASH)
13+
14+
# The file we use to determine if the library has been fetched and built.
15+
U8G2_SENTINEL_FILE := $(U8G2_SRC_DIR)/csrc/u8g2.h

0 commit comments

Comments
 (0)