File tree Expand file tree Collapse file tree 4 files changed +22
-15
lines changed Expand file tree Collapse file tree 4 files changed +22
-15
lines changed Original file line number Diff line number Diff line change 1
- # Git hash of the library to use
2
- VERSION_HASH := c4f9cd9f8717661c46be16bfbcb0017d785db3c1
1
+ include Makefile.version
3
2
4
3
# Base folder definitions
5
4
TOCK_USERLAND_BASE_DIR ?= ..
6
5
LIBNAME := u8g2
7
6
$(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 )
9
8
10
9
# List all C and Assembly files
11
10
$(LIBNAME)_SRCS_ALL += $(wildcard $(LIB_SRC_DIR ) /csrc/u8g2* .c)
Original file line number Diff line number Diff line change 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
3
3
4
4
# Base folder definitions
5
5
U8G2_LIB_DIR := $(TOCK_USERLAND_BASE_DIR)/u8g2
Original file line number Diff line number Diff line change 2
2
### Helper Makefile for downloading the U8G2 library and unzipping.
3
3
###
4
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 := 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
13
6
14
7
# Rules to download the source repository if needed. These are here so that the
15
8
# expanded library is available before calling into the library Makefile.
16
9
$(U8G2_SRC_DIR).zip:
17
10
curl -L --output $(U8G2_SRC_DIR).zip https://codeload.github.com/olikraus/u8g2/zip/$(U8G2_VERSION_HASH)
18
11
19
12
# 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
21
14
unzip -q -d $(U8G2_LIB_DIR) $(U8G2_SRC_DIR).zip
22
15
23
16
# Main rule to check if we need to fetch the library.
24
- all: | $(U8G2_SRC_DIR)/csrc/u8g2.h
17
+ all: | $(U8G2_SENTINEL_FILE)
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments