sw_services: openamp: added missing include file for freertos
This patch modifies openamp library to include missing header files to bm_env.c for freertos. Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com> Acked by: Anirudha Sarangi <anirudh@xilinx.com>
This commit is contained in:
parent
07e5abb299
commit
a23fcf5be9
2 changed files with 19 additions and 10 deletions
|
@ -71,18 +71,21 @@ proc xgen_opts_file {libhandle} {
|
|||
return 0;
|
||||
}
|
||||
set os [lindex $oslist 0];
|
||||
set config_inc [::hsi::utils::open_include_file "amp_os.h"]
|
||||
puts $config_inc "/******************************************************************/"
|
||||
puts $config_inc ""
|
||||
puts $config_inc "/* Operating System definition */"
|
||||
set amposfn [file join "src" "amp_os.h"]
|
||||
file delete $amposfn
|
||||
set ampos [open $amposfn w]
|
||||
::hsi::utils::write_c_header $ampos "Definition of OS for which the BSP is built"
|
||||
puts $ampos "/******************************************************************/"
|
||||
puts $ampos ""
|
||||
puts $ampos "/* Operating System definition */"
|
||||
if { $os == "freertos821_xilinx" } {
|
||||
puts $config_inc "#define USE_FREERTOS TRUE"
|
||||
puts $ampos "#define USE_FREERTOS TRUE"
|
||||
} else {
|
||||
puts $config_inc "#define USE_BAREMETAL TRUE"
|
||||
puts $ampos "#define USE_BAREMETAL TRUE"
|
||||
}
|
||||
puts $config_inc ""
|
||||
puts $config_inc "/******************************************************************/"
|
||||
close $config_inc
|
||||
puts $ampos ""
|
||||
puts $ampos "/******************************************************************/"
|
||||
close $ampos
|
||||
# Copy the include files to the include directory
|
||||
set srcdir src
|
||||
set dstdir [file join .. .. include]
|
||||
|
|
|
@ -44,7 +44,13 @@
|
|||
|
||||
#include "env.h"
|
||||
#include "config.h"
|
||||
|
||||
#include "amp_os.h"
|
||||
#ifdef USE_FREERTOS
|
||||
#include "FreeRTOS.h"
|
||||
#include "semphr.h"
|
||||
#include "portmacro.h"
|
||||
#include "task.h"
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue