tools: Remove packhex

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, this tool has no license
information.

Remove all uses of this tool from the code base.  Users of HEX files
should consider to use ELF instead.

Close #3379.
This commit is contained in:
Sebastian Huber
2018-06-15 07:14:36 +02:00
parent df7f0ac6c0
commit e8b28ba004
11 changed files with 0 additions and 623 deletions
-4
View File
@@ -11,10 +11,6 @@ dnl
AC_DEFUN([RTEMS_PROJECT_ROOT],
[dnl
AC_REQUIRE([RTEMS_TOP])
PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex"
AC_SUBST(PACKHEX)
BIN2C=rtems-bin2c
AC_SUBST(BIN2C)
])
-9
View File
@@ -17,12 +17,3 @@ CFLAGS_OPTIMIZE_V = -Os -g -fomit-frame-pointer
# The following two lines enable compiling and linking on per element.
# CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
# LDFLAGS = -Wl,--gc-sections
define bsp-post-link
$(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
$(PACKHEX) > $(basename $@)$(DOWNEXT)
rm -f $(basename $@).srec
$(default-bsp-post-link)
endef
-8
View File
@@ -15,11 +15,3 @@ CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
define bsp-post-link
$(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
$(PACKHEX) > $(basename $@)$(DOWNEXT)
rm -f $(basename $@).srec
$(default-bsp-post-link)
endef
-10
View File
@@ -15,13 +15,3 @@ CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
define bsp-post-link
$(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
$(PACKHEX) > $(basename $@)$(DOWNEXT)
rm -f $(basename $@).srec
$(default-bsp-post-link)
endef
# Miscellaneous additions go here
-7
View File
@@ -13,10 +13,3 @@ CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
define bsp-post-link
$(OBJCOPY) -O srec $@ $(basename $@).srec1
$(PACKHEX) < $(basename $@).srec1 > $(basename $@)$(DOWNEXT)
$(RM) $(basename $@).srec1
$(default-bsp-post-link)
endef
-7
View File
@@ -13,10 +13,3 @@ CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections
define bsp-post-link
$(OBJCOPY) -O srec $@ $(basename $@).srec1
$(PACKHEX) < $(basename $@).srec1 > $(basename $@)$(DOWNEXT)
$(RM) $(basename $@).srec1
$(default-bsp-post-link)
endef
-3
View File
@@ -22,9 +22,6 @@ CHMOD=chmod
SED=sed
# Global tools
ifndef PACKHEX
PACKHEX=$(PROJECT_BIN)/packhex
endif
ifndef BIN2C
BIN2C=rtems-bin2c
-4
View File
@@ -1,10 +1,6 @@
AC_DEFUN([RTEMS_PROJECT_ROOT],
[dnl
AC_REQUIRE([RTEMS_TOP])
PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex"
AC_SUBST(PACKHEX)
BIN2C=rtems-bin2c
AC_SUBST(BIN2C)
])
-4
View File
@@ -1,9 +1,5 @@
ACLOCAL_AMFLAGS = -I ../../aclocal
bin_PROGRAMS = packhex
packhex_SOURCES = packhex.c
bin_SCRIPTS = install-if-change
noinst_SCRIPTS = doxy-filter
-6
View File
@@ -10,14 +10,8 @@ AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([no-define foreign subdir-objects 1.12.2])
AM_MAINTAINER_MODE
AC_PROG_CC
AC_CHECK_HEADERS([getopt.h libgen.h])
AC_CHECK_FUNCS(strerror strtol basename strnlen)
RTEMS_PATH_KSH
AC_CONFIG_HEADERS([config.h])
# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([install-if-change],[chmod +x install-if-change])
File diff suppressed because it is too large Load Diff