#1755 assigned defect

rtems-bin2c not friendly for files in other directories

Reported by: dufault Owned by: Joel Sherrill
Priority: normal Milestone: Indefinite
Component: tool Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description (last modified by Gedare)

I have my source read-only and build into other directories from the source directory.
A command such as:
rtems-bin2c /home/dufault/work/scratch/V10.1.0/powerpc-unknown-rtems/solarcat/fs /home/dufault/work/scratch/V10.1.0/powerpc-unknown-rtems/solarcat/fs
results in something like:
#ifndef /home/dufault/work/scratch/V10_1_0/powerpc_unknown_rtems/solarcat/fs_h
#define
/home/dufault/work/scratch/V10_1_0/powerpc_unknown_rtems/solarcat/fs_h
With the attached patch it yields:
#ifndef _home_dufault_work_scratch_V10_1_0_powerpc_unknown_rtems_solarcat_fs_h
#define
_home_dufault_work_scratch_V10_1_0_powerpc_unknown_rtems_solarcat_fs_h
It also adds "generated by rtems-bin2c" in the comment.

Attachments (1)

rtems-bin2c.patch (3.0 KB) - added by dufault on Mar 6, 2011 at 11:09:22 AM.
Patch to give acceptable guard define for path names

Download all attachments as: .zip

Change History (9)

Changed on Mar 6, 2011 at 11:09:22 AM by dufault

Attachment: rtems-bin2c.patch added

Patch to give acceptable guard define for path names

comment:1 Changed on Mar 6, 2011 at 11:09:22 AM by dufault

I have my source read-only and build into other directories from the source directory.
A command such as:

rtems-bin2c /home/dufault/work/scratch/V10.1.0/powerpc-unknown-rtems/solarcat/fs /home/dufault/work/scratch/V10.1.0/powerpc-unknown-rtems/solarcat/fs

results in something like:
#ifndef /home/dufault/work/scratch/V10_1_0/powerpc_unknown_rtems/solarcat/fs_h
#define
/home/dufault/work/scratch/V10_1_0/powerpc_unknown_rtems/solarcat/fs_h

With the attached patch it yields:
#ifndef _home_dufault_work_scratch_V10_1_0_powerpc_unknown_rtems_solarcat_fs_h
#define
_home_dufault_work_scratch_V10_1_0_powerpc_unknown_rtems_solarcat_fs_h

It also adds "generated by rtems-bin2c" in the comment.

comment:2 Changed on Nov 23, 2014 at 2:53:37 PM by Joel Sherrill

Description: modified (diff)
Owner: changed from Ralf Corsepius to Joel Sherrill
Status: newassigned

comment:3 Changed on Nov 23, 2014 at 2:54:14 PM by Joel Sherrill

Peter, this doesn't apply to the head. Can you please update the attached patch so I can push it. Thanks.

comment:4 Changed on Nov 24, 2014 at 6:58:28 PM by Gedare

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

comment:5 Changed on Dec 19, 2014 at 3:51:25 AM by Gedare

Description: modified (diff)
Milestone: 4.114.11.1

comment:6 Changed on Jan 26, 2017 at 7:16:00 AM by Sebastian Huber

Milestone: 4.11.14.11.2

comment:7 Changed on Mar 23, 2017 at 1:03:28 AM by Chris Johns

Milestone: 4.11.24.11.3

The 4.11.2 milestone is closing.

comment:8 Changed on Feb 5, 2018 at 5:49:58 AM by Chris Johns

Milestone: 4.11.3Indefinite

Needs funding.

Note: See TracTickets for help on using tickets.