Changeset bac8d934 in rtems


Ignore:
Timestamp:
Jun 15, 2018, 6:18:26 AM (11 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5ec5503
Parents:
1f283f17
git-author:
Sebastian Huber <sebastian.huber@…> (06/15/18 06:18:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/15/18 10:57:32)
Message:

tools: Remove install-if-change program

The last installed tool in RTEMS repository is the install-if-change
script. It is not used to build/install BSPs. This script does the
same as the standard "install" program with an additional feature to
install variants via the -V command line option.

This script is used by the standard Makefile support:

c/src/make/host.cfg.in:INSTALL_CHANGE=$(PROJECT_BIN)/install-if-change

The INSTALL_CHANGE is used by:

c/src/make/host.cfg.in:ifndef INSTALL_CHANGE
c/src/make/host.cfg.in:INSTALL_CHANGE=$(PROJECT_BIN)/install-if-change
c/src/make/host.cfg.in:INSTALL_VARIANT=$(INSTALL_CHANGE) -V
"$(LIB_VARIANT)"

Remove the support for variant installation and instead use the standard
"install" program. This breaks application Makefiles using the standard
Makefile support of RTEMS.

Close #3455.

Files:
5 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r1f283f17 rbac8d934  
    1212
    1313dist-hook:
    14         @files=`(cd $(srcdir); find cpukit c testsuites tools \
     14        @files=`(cd $(srcdir); find cpukit c testsuites \
    1515           -name configure.ac -print | sed 's,/configure.ac,,' | sort)`; \
    1616        for i in $$files; do \
  • c/src/make/README

    r1f283f17 rbac8d934  
    427427                 and other things that need to be installed:
    428428
    429                     INSTALL_CHANGE  - install a file only if the source
    430                                       file is actually different than
    431                                       the installed copy or if there is
    432                                       no installed copy.  USAGE:
    433 
    434       usage: install-if-change [ -vmV ] file [ file ... ] dest-directory-or-file
    435         -v          -- verbose
    436         -V suffix   -- suffix to append to targets (before any . suffix)
    437                         eg: -V _g would change 'foo' to 'foo_g' and
    438                                                'libfoo.a' to 'libfoo_g.a'
    439         -m mode     -- mode for new file(s)
    440 
    441                     INSTALL_VARIANT - installs the built file using the
    442                                       proper variant suffix (e.g. _g
    443                                       for debug turns libmine.a into libmine_g.a)
    444                                       This is implemented as a macro that
    445                                       invokes install-if-change with the
    446                                       appropriate -V argument setting.
     429                    INSTALL_CHANGE  - set to host "install" program by default
     430
     431                    INSTALL_VARIANT - set to host "install" program by default
    447432
    448433            Special Directory Makefile Targets
  • c/src/make/host.cfg.in

    r1f283f17 rbac8d934  
    2929
    3030ifndef INSTALL_CHANGE
    31 INSTALL_CHANGE=$(PROJECT_BIN)/install-if-change
     31INSTALL_CHANGE=install
    3232endif
    33 INSTALL_VARIANT=$(INSTALL_CHANGE) -V "$(LIB_VARIANT)"
     33ifndef INSTALL_VARIANT
     34INSTALL_VARIANT=install
     35endif
    3436
    3537# ksh (or bash) is used by some shell scripts; ref build-tools/scripts/Makefile
  • configure.ac

    r1f283f17 rbac8d934  
    3333RTEMS_ENABLE_DRVMGR
    3434
    35 ## Check if there are valid tools install and in the path.
    36 RTEMS_CHECK_TOOL(RTEMS_CC,gcc)
    37 test -z "$RTEMS_CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
    38 
    39 ## NOTES:
    40 ## * tools/build are host-native tools to be installed on the host.
    41 ## * tools/cpu are host-native or host-cross-target-tools
    42 
    43 RTEMS_BUILD_CONFIG_SUBDIRS([tools/build])
    44 
    45 # Some BSPs carelessly apply these tools as build-tools
    46 AS_IF([test $host != $build],[
    47 RTEMS_HOST_CONFIG_SUBDIRS([tools/build])
    48 ])
    49 
    5035RTEMS_TARGET_CONFIG_SUBDIRS([c])
    5136
Note: See TracChangeset for help on using the changeset viewer.