mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 22:21:38 +08:00
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:
@@ -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)
|
||||
])
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -22,9 +22,6 @@ CHMOD=chmod
|
||||
SED=sed
|
||||
|
||||
# Global tools
|
||||
ifndef PACKHEX
|
||||
PACKHEX=$(PROJECT_BIN)/packhex
|
||||
endif
|
||||
|
||||
ifndef BIN2C
|
||||
BIN2C=rtems-bin2c
|
||||
|
||||
@@ -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)
|
||||
])
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
ACLOCAL_AMFLAGS = -I ../../aclocal
|
||||
|
||||
bin_PROGRAMS = packhex
|
||||
|
||||
packhex_SOURCES = packhex.c
|
||||
|
||||
bin_SCRIPTS = install-if-change
|
||||
|
||||
noinst_SCRIPTS = doxy-filter
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user