summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fa5431e)
raw | patch | inline | side by side (parent: fa5431e)
author | Sam Nelson <sam.nelson@ti.com> | |
Mon, 27 Feb 2017 21:57:11 +0000 (16:57 -0500) | ||
committer | Sam Nelson <sam.nelson@ti.com> | |
Mon, 27 Feb 2017 21:57:11 +0000 (16:57 -0500) |
- Making the host binary to be board specific instead of platform
specific.
( Board library used is board specific)
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
specific.
( Board library used is board specific)
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
diff --git a/host_bios/simple_buffer_example/dsp/makefile b/host_bios/simple_buffer_example/dsp/makefile
index 97d0fba48c6d2c84e3d9d7fc5079b3da5bd54299..67e456755169395865572308e77e1c89fe78fad1 100644 (file)
ifneq (,$(PROFILE))
ifeq (,$(wildcard bin/$(PLATFORM)/$(PROFILE)/obj))
$(shell $(MKDIR) -p bin/$(PLATFORM)/$(PROFILE)/obj)
+endif
+ifeq (,$(wildcard bin/shared/$(PLATFORM)/$(PROFILE)/obj/shared/bigdataxlat/bios))
$(shell $(MKDIR) -p bin/shared/$(PLATFORM)/$(PROFILE)/obj/shared/bigdataxlat/bios)
endif
endif
diff --git a/host_bios/simple_buffer_example/host/makefile b/host_bios/simple_buffer_example/host/makefile
index bf94b921cbe54305d5e46d8442503e9697e8e5d3..1d9f842a856997f68d2ccad2a19926d29fed24e2 100644 (file)
EXBASE = ..
include $(EXBASE)/products.mak
-srcs = MainHost.c App.c
-objs = $(addprefix bin/$(PLATFORM)/$(PROFILE)/obj/,$(patsubst %.c,%.oa15fg,$(srcs)))
-CONFIG = bin/$(PLATFORM)/$(PROFILE)/configuro
+srcs = MainHost.c App.c
+objs = $(addprefix bin/$(BOARD_NAME)/$(PROFILE)/obj/,$(patsubst %.c,%.oa15fg,$(srcs)))
+CONFIG = bin/$(BOARD_NAME)/$(PROFILE)/configuro
HOSTOS = bios
locallibsrcs = shared/bigdataxlat/$(HOSTOS)/bigdataxlat.c
locallibobjs = $(addprefix bin/shared/$(PLATFORM)/$(PROFILE)/obj/,$(patsubst %.c,%.oa15fg,$(locallibsrcs)))
--include $(addprefix bin/$(PLATFORM)/$(PROFILE)/obj/,$(patsubst %.c,%.oa15fg.dep,$(srcs)))
+-include $(addprefix bin/$(BOARD_NAME)/$(PROFILE)/obj/,$(patsubst %.c,%.oa15fg.dep,$(srcs)))
-include $(addprefix bin/shared/$(PLATFORM)/$(PROFILE)/obj/,$(patsubst %.c,%.oa15fg.dep,$(locallibsrcs)))
.PRECIOUS: %/compiler.opt %/linker.cmd
debug:
$(MAKE) PROFILE=debug app_host.x
-app_host.x: bin/$(PLATFORM)/$(PROFILE)/app_host.xa15fg
-bin/$(PLATFORM)/$(PROFILE)/app_host.xa15fg: $(objs) $(locallibobjs) $(libs) $(CONFIG)/linker.cmd
+app_host.x: bin/$(BOARD_NAME)/$(PROFILE)/app_host.xa15fg
+bin/$(BOARD_NAME)/$(PROFILE)/app_host.xa15fg: $(objs) $(locallibobjs) $(libs) $(CONFIG)/linker.cmd
@$(ECHO) "#"
@$(ECHO) "# Making $@ ..."
$(LD) -o $@ $(LDFLAGS) $(objs) $(locallibobjs) $(libs) -Wl,-T,$(CONFIG)/linker.cmd \
-lgcc -lc -lm -lnosys $(LDLIBS)
-bin/$(PLATFORM)/$(PROFILE)/obj/%.oa15fg: %.c $(CONFIG)/compiler.opt
+bin/$(BOARD_NAME)/$(PROFILE)/obj/%.oa15fg: %.c $(CONFIG)/compiler.opt
@$(ECHO) "#"
@$(ECHO) "# Making $@ ..."
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $<
# @$(MKDIR) $(EXEC_DIR)/debug
# $(CP) bin/$(PLATFORM)/debug/app_host.xa15fg $(EXEC_DIR)/debug
@$(MKDIR) $(EXEC_DIR)/release
- $(CP) bin/$(PLATFORM)/release/app_host.xa15fg $(EXEC_DIR)/release
+ $(CP) bin/$(BOARD_NAME)/release/app_host.xa15fg $(EXEC_DIR)/release
help:
@$(ECHO) "make # build executable"
# ======== create output directories ========
ifneq (clean,$(MAKECMDGOALS))
ifneq (,$(PROFILE))
-ifeq (,$(wildcard bin/$(PLATFORM)/$(PROFILE)/obj))
- $(shell $(MKDIR) -p bin/$(PLATFORM)/$(PROFILE)/obj)
+ifeq (,$(wildcard bin/$(BOARD_NAME)/$(PROFILE)/obj))
+ $(shell $(MKDIR) -p bin/$(BOARD_NAME)/$(PROFILE)/obj)
+endif
+ifeq (,$(wildcard bin/shared/$(PLATFORM)/$(PROFILE)/obj/shared/bigdataxlat/bios))
$(shell $(MKDIR) -p bin/shared/$(PLATFORM)/$(PROFILE)/obj/shared/bigdataxlat/bios)
endif
endif
diff --git a/host_bios/simple_buffer_example/readme.txt b/host_bios/simple_buffer_example/readme.txt
index 5c1a1f443696c45529123103e441c32d28721e21..5f90ca6c1a68963bec0160a7dc420557be15dedc 100644 (file)
Program Logic:
+--------------
+
Initially, the host sends first message with shared memory init information
followed by 2 more dummy messages to slave core ( all three messages sent in
sequence without waiting for reply).
If you want to override the components or do a local build, then the product.mak
need to be modified to supply the path names of the different components.
+
+The host binaries are expected to be at:
+host/bin/<board_name>/release
+DSP binaries are expected to be at:
+dsp/bin/<platform_name>/release