Skip to content

Commit

Permalink
external: move endian/endian.h inside a top-level ccan/ directory
Browse files Browse the repository at this point in the history
To keep better track of the source of dependencies, endian.h should be
in a directory path that names the original source, as it is helpful
for namespacing headers.

This also matches that pattern that was used in secvarctl, so now
secvarctl can remove carrying endian.h itself and just use the version
provided by libstb-secvar.

Signed-off-by: Eric Richter <[email protected]>
  • Loading branch information
erichte-ibm committed Feb 2, 2024
1 parent 69194d1 commit 3840656
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ target_include_directories ( stb-secvar-openssl AFTER PRIVATE
./
include/
include/secvar/
external/endian/
external/
external/edk2/
)

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ OBJ_DIR = ./obj
LIB_DIR = ./lib
TEST_DIR = ./test

INCLUDE = -I./include -I./
INCLUDE = -I./include -I./ -I./external

DEBUG ?= 0
ifeq ($(strip $(DEBUG)), 1)
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion external/edk2/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "config.h"
#include "external/endian/endian.h"
#include "ccan/endian/endian.h"

#define MAX_HASH_SIZE 32
#define UUID_SIZE 16
Expand Down
2 changes: 1 addition & 1 deletion include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#error __BYTE_ORDER__ is undefined, edit config.h
#endif

#include <external/endian/endian.h>
#include <ccan/endian/endian.h>
#include <stdlib.h>
#include <openssl/crypto.h>

Expand Down
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SRC_DIR = ../src
BIN_DIR =./bin
LIB_DIR =../lib

INCLUDE = -I../include -I../
INCLUDE = -I../include -I../ -I../external

TEST_SRCS = test_esl.c \
test_auth2.c \
Expand Down

0 comments on commit 3840656

Please sign in to comment.