dm36x: Add libatomthreads.a build target for linking to external applications.

This commit is contained in:
Kelvin Lawson
2013-09-18 22:56:21 +01:00
parent dfe296b01b
commit 4b9022a55e
2 changed files with 10 additions and 0 deletions

View File

@@ -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)

View File

@@ -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)