Skip to content

Commit

Permalink
Improving HAL directory structure
Browse files Browse the repository at this point in the history
To accomodate for testing different platform implementations of same-name units. Also updated corresponding makefiles.
  • Loading branch information
amendelzon committed Aug 8, 2024
1 parent a0791fc commit 7f5ac3c
Show file tree
Hide file tree
Showing 55 changed files with 13 additions and 13 deletions.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions firmware/src/hal/ledger/src/communication.c
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions firmware/src/hal/ledger/src/sha256.c
1 change: 1 addition & 0 deletions firmware/src/hal/ledger/src/sha256.h
Empty file.
1 change: 0 additions & 1 deletion firmware/src/hal/src/ledger/communication.c

This file was deleted.

1 change: 0 additions & 1 deletion firmware/src/hal/src/ledger/sha256.c

This file was deleted.

1 change: 0 additions & 1 deletion firmware/src/hal/src/ledger/sha256.h

This file was deleted.

1 change: 0 additions & 1 deletion firmware/src/hal/src/x86/communication.c

This file was deleted.

1 change: 0 additions & 1 deletion firmware/src/hal/src/x86/sha256.c

This file was deleted.

1 change: 0 additions & 1 deletion firmware/src/hal/src/x86/sha256.h

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions firmware/src/hal/x86/src/communication.c
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions firmware/src/hal/x86/src/sha256.c
1 change: 1 addition & 0 deletions firmware/src/hal/x86/src/sha256.h
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

INCDIR = ../../include
SRCDIR = ../../src/x86
INCDIR = ../../../include
SRCDIR = ../../src
CFLAGS = -iquote $(INCDIR) -iquote $(SRCDIR)
CFLAGS += -DHSM_PLATFORM_X86

include ../../../../coverage/coverage.mk
include ../../../../../coverage/coverage.mk

CFLAGS += $(COVFLAGS)

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion firmware/src/ledger/signer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ APPFLAGS = 0x00
PROG = "app"

# Build configuration
APP_SOURCE_PATH += src ../../powhsm/src ../../common/src ../../hal/src/ledger
APP_SOURCE_PATH += src ../../powhsm/src ../../common/src ../../hal/ledger/src
SDK_SOURCE_PATH += lib_stusb lib_stusb_impl

DEFINES += APPVERSION=\"$(APPVERSION)\"
Expand Down
2 changes: 1 addition & 1 deletion firmware/src/ledger/ui/test/mock/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ COMMONDIR = ../../../../common/src
MOCKDIR = ../mock
THISMOCKDIR = ./mock
HALINCDIR = ../../../../hal/include
HALSRCDIR = ../../../../hal/src/x86
HALSRCDIR = ../../../../hal/x86/src
CFLAGS = -iquote $(THISMOCKDIR) -iquote $(COMMONDIR) -iquote $(MOCKDIR)
CFLAGS += -iquote $(SRCDIR) -iquote $(HALINCDIR) -iquote $(HALSRCDIR)
CFLAGS += -DHSM_PLATFORM_X86
Expand Down
2 changes: 1 addition & 1 deletion firmware/src/powhsm/test/common/common.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TESTCOMMONDIR = ../common
SRCDIR = ../../src
HALINCDIR = ../../../hal/include
HALSRCDIR = ../../../hal/src/x86
HALSRCDIR = ../../../hal/x86/src
COMMONDIR = ../../../common/src
CFLAGS = -iquote $(SRCDIR) -iquote $(HALINCDIR) -iquote $(HALSRCDIR)
CFLAGS += -iquote $(TESTCOMMONDIR) -iquote $(COMMONDIR)
Expand Down
2 changes: 1 addition & 1 deletion firmware/src/tcpsigner/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
SRCPATH = ./src
POWHSMSRCPATH = ../powhsm/src
COMMONPATH = ../common/src
HALSRCPATH = ../hal/src/x86
HALSRCPATH = ../hal/x86/src
HALINCPATH = ../hal/include
HALPATH = $(HALINCPATH):$(HALSRCPATH)
VPATH = $(SRCPATH):$(POWHSMSRCPATH):$(COMMONPATH):$(HALPATH)
Expand Down

0 comments on commit 7f5ac3c

Please sign in to comment.