mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-01-23 00:03:15 +01:00
dm36x: Add libatomthreads.a build target for linking to external applications.
This commit is contained in:
@@ -14,6 +14,7 @@ TESTS_DIR=../../../../tests
|
||||
PORT_DIR=../..
|
||||
CC=arm-none-eabi-gcc
|
||||
OBJCOPY=arm-none-eabi-objcopy
|
||||
ARCHIVE=arm-none-eabi-ar
|
||||
|
||||
# Location of TFTP root folder for running tests via U-Boot/TFTP.
|
||||
# Note, you may need to run the Makefile as root in order to write
|
||||
@@ -81,6 +82,10 @@ endif
|
||||
# All tests
|
||||
all: $(BUILD_DIR) $(TEST_ELFS) $(TEST_BINS) $(TEST_UIMAGES) Makefile
|
||||
|
||||
# Build archive for linking with external application
|
||||
libatomthreads.a: $(BUILD_DIR) $(ALL_OBJECTS) Makefile
|
||||
$(ARCHIVE) cr $(BUILD_DIR)/$@ $(BUILT_OBJECTS)
|
||||
|
||||
# Make build/output directory
|
||||
$(BUILD_DIR):
|
||||
mkdir $(BUILD_DIR)
|
||||
|
||||
@@ -14,6 +14,7 @@ TESTS_DIR=../../../../tests
|
||||
PORT_DIR=../..
|
||||
CC=arm-none-eabi-gcc
|
||||
OBJCOPY=arm-none-eabi-objcopy
|
||||
ARCHIVE=arm-none-eabi-ar
|
||||
QEMU=qemu-system-arm
|
||||
|
||||
# Enable stack-checking.
|
||||
@@ -71,6 +72,10 @@ endif
|
||||
# All tests
|
||||
all: $(BUILD_DIR) $(TEST_ELFS) Makefile
|
||||
|
||||
# Build archive for linking with external application
|
||||
libatomthreads.a: $(BUILD_DIR) $(ALL_OBJECTS) Makefile
|
||||
$(ARCHIVE) cr $(BUILD_DIR)/$@ $(BUILT_OBJECTS)
|
||||
|
||||
# Make build/output directory
|
||||
$(BUILD_DIR):
|
||||
mkdir $(BUILD_DIR)
|
||||
|
||||
Reference in New Issue
Block a user