Changeset 8c62cf4 in rtems


Ignore:
Timestamp:
Jun 6, 2018, 2:21:22 PM (11 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
46c2da6
Parents:
3248137
git-author:
Sebastian Huber <sebastian.huber@…> (06/06/18 14:21:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/11/18 12:47:32)
Message:

tools: Remove shgen

All tools should be removed from the RTEMS source repository at some
point in time. Tools with a BSD-style license will be moved to the RTEMS
tools repository. Unfortunately, the shgen tool is GPL licensed.

Remove all uses of this tool from the code base. Replace generated files
with stub functions. If users of this BSP still exist, they can
reimplement the functionality using a BSD-style license.

Close #3443.

Files:
2 added
8 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • bsps/sh/gensh1/console/sci.c

    r3248137 r8c62cf4  
    1919 */
    2020
    21 #include <rtems.h>
     21#include <bsp.h>
    2222
    2323#include <stdlib.h>
     
    5454} ;
    5555
    56 /*  imported from scitab.rel */
    57 extern int _sci_get_brparms(
    58   speed_t       spd,
    59   unsigned char *smr,
    60   unsigned char *brr );
    61 
    6256/* Translate termios' tcflag_t into sci settings */
    6357static int _sci_set_cflags(
  • bsps/sh/gensh1/include/bsp.h

    r3248137 r8c62cf4  
    6161void bsp_hw_init(void);
    6262
    63 extern int _sci_get_brparms(
    64   tcflag_t      cflag,
     63int _sci_get_brparms(
     64  unsigned int   spd,
    6565  unsigned char *smr,
    6666  unsigned char *brr
  • bsps/sh/gensh2/console/sci.c

    r3248137 r8c62cf4  
    7474
    7575#define SH_SCI_DEF_COMM_0   CS8, B9600
    76 #define SH_SCI_DEF_COMM_1   CS8, B38400
    77 /*  #define SH_SCI_DEF_COMM_1   CS8, B9600 */
     76#define SH_SCI_DEF_COMM_1   CS8, B9600
    7877
    7978struct scidev_t {
  • bsps/sh/gensh2/include/bsp.h

    r3248137 r8c62cf4  
    7373 */
    7474void bsp_hw_init(void);
    75 extern int _sci_get_brparms(
    76   tcflag_t      cflag,
     75
     76int _sci_get_brparms(
     77  unsigned int   spd,
    7778  unsigned char *smr,
    7879  unsigned char *brr
  • c/src/lib/libbsp/sh/gensh1/Makefile.am

    r3248137 r8c62cf4  
    1717librtemsbsp_a_SOURCES =
    1818
    19 SHGEN = $(PROJECT_TOPdir)/tools/cpu/sh/shgen
    20 
    21 scitab.c: $(SHGEN)
    22         $(SHGEN) -H @CPU_CLOCK_RATE_HZ@ sci > $@
    23 BUILT_SOURCES = scitab.c
    24 CLEANFILES = scitab.c
    25 
    2619# startup
    2720librtemsbsp_a_SOURCES += ../../../../../../bsps/sh/shared/start/bspstart.c
     
    3831librtemsbsp_a_SOURCES += ../../../../../../bsps/sh/gensh1/btimer/btimer.c
    3932# scitab
    40 librtemsbsp_a_SOURCES += scitab.c
     33librtemsbsp_a_SOURCES += ../../../../../../bsps/sh/gensh1/console/scitab.c
    4134# console
    4235librtemsbsp_a_SOURCES += ../../../../../../bsps/sh/shared/console/console.c
  • c/src/lib/libbsp/sh/gensh1/configure.ac

    r3248137 r8c62cf4  
    1414
    1515## bsp-specific options
    16 RTEMS_BSPOPTS_SET([CPU_CLOCK_RATE_HZ],[*],[20000000])
    17 RTEMS_BSPOPTS_HELP([CPU_CLOCK_RATE_HZ],[cpu clock rate in HZ])
    18 
    1916RTEMS_BSPOPTS_SET([START_HW_INIT],[*],[])
    2017RTEMS_BSPOPTS_HELP([START_HW_INIT],
     
    2219 'bsp_hw_init()' is always called from 'bspstart.c'])
    2320
    24 ## Used in scitab/Makefile.am
    25 AC_SUBST(CPU_CLOCK_RATE_HZ)
    26 
     21AC_DEFINE(CPU_CLOCK_RATE_HZ, 20000000, [cpu clock rate in HZ])
    2722RTEMS_BSP_CLEANUP_OPTIONS
    2823
  • c/src/lib/libbsp/sh/gensh2/Makefile.am

    r3248137 r8c62cf4  
    1919librtemsbsp_a_SOURCES =
    2020
    21 SHGEN = $(PROJECT_TOPdir)/tools/cpu/sh/shgen
    22 
    23 scitab.c: $(SHGEN)
    24         $(SHGEN) -H @CPU_CLOCK_RATE_HZ@ sci > $@
    25 BUILT_SOURCES = scitab.c
    26 CLEANFILES = scitab.c
    27 
    2821# startup
    2922librtemsbsp_a_SOURCES += ../../../../../../bsps/sh/gensh2/start/hw_init.c
     
    4033librtemsbsp_a_SOURCES += ../../../../../../bsps/sh/gensh2/btimer/btimer.c
    4134# scitab
    42 librtemsbsp_a_SOURCES += scitab.c
     35librtemsbsp_a_SOURCES += ../../../../../../bsps/sh/gensh2/console/scitab.c
    4336# console
    4437librtemsbsp_a_SOURCES += ../../../../../../bsps/sh/shared/console/console.c
  • c/src/lib/libbsp/sh/gensh2/configure.ac

    r3248137 r8c62cf4  
    1414
    1515## bsp-specific options
    16 RTEMS_BSPOPTS_SET([CPU_CLOCK_RATE_HZ],[*],[29491200])
    17 RTEMS_BSPOPTS_HELP([CPU_CLOCK_RATE_HZ],[cpu clock rate in HZ])
    18 
    19 ## Used in scitab/Makefile.am
    20 AC_SUBST(CPU_CLOCK_RATE_HZ)
     16AC_DEFINE(CPU_CLOCK_RATE_HZ, 29491200, [cpu clock rate in HZ])
    2117
    2218RTEMS_BSPOPTS_SET([START_HW_INIT],[*],[])
  • tools/cpu/configure.ac

    r3248137 r8c62cf4  
    2020AC_CONFIG_SUBDIRS(generic)
    2121case "$RTEMS_CPU" in
    22 sh ) AC_CONFIG_SUBDIRS(sh);;
    2322nios2 ) AC_CONFIG_SUBDIRS(nios2);;
    2423esac
Note: See TracChangeset for help on using the changeset viewer.