source: rtems-docs/posix-compliance/probe_rtems @ 6559511

5
Last change on this file since 6559511 was 60a6d6e, checked in by Sebastian Huber <sebastian.huber@…>, on 11/09/17 at 09:22:24

Change RTEMS version to 5

Update #3220.

  • Property mode set to 100755
File size: 900 bytes
Line 
1#! /bin/bash
2
3lfile=unprobed_methods.txt
4cpu=arm
5bsp=xilinx_zynq_a9_qemu
6bsp_path=/home/joel/rtems-work/tools/5/bsps/arm-rtems5
7bsp_flags="-march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9"
8
9cat_template()
10{
11cat <<EOF
12void @METHOD@(void);
13
14int main(int argc, char **argv)
15{
16  @METHOD@();
17  return 0;
18}
19EOF
20}
21
22gen_prober()
23{
24  method=$1
25  mname=`echo ${method} | sed -e 's/[()]//g'`
26  cat_template | sed -e "s/@METHOD@/${mname}/g"
27}
28
29cat ${lfile} | while read method
30do
31  grep ${method} probe_misses.txt >/dev/null
32  if [ $? -eq 0 ] ; then
33    echo "${method},HAND-YES"
34    continue
35  fi
36
37  gen_prober ${method} >tmp_probe.c
38  ${cpu}-rtems5-gcc \
39    -B${bsp_path}/${bsp}/lib/ -specs bsp_specs -qrtems \
40    ${bsp_flags} \
41    tmp_probe.c >/dev/null 2>&1
42  if [ $? -eq 0 ] ; then
43    echo "${method},RT-YES"
44    continue
45  fi
46  echo "${method},RT-NO"
47done
48
49# rm -f tmp_probe.c a.out
Note: See TracBrowser for help on using the repository browser.