#1755 closed defect (fixed)

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 Bloom)

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 03/06/11 at 11:09:22.
Patch to give acceptable guard define for path names

Download all attachments as: .zip

Change History (10)

Changed on 03/06/11 at 11:09:22 by dufault

Attachment: rtems-bin2c.patch added

Patch to give acceptable guard define for path names

comment:1 Changed on 03/06/11 at 11:09:22 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 11/23/14 at 14:53:37 by Joel Sherrill

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

comment:3 Changed on 11/23/14 at 14:54:14 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 11/24/14 at 18:58:28 by Gedare Bloom

Version: HEAD4.11

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

comment:5 Changed on 12/19/14 at 03:51:25 by Gedare Bloom

Description: modified (diff)
Milestone: 4.114.11.1

comment:6 Changed on 01/26/17 at 07:16:00 by Sebastian Huber

Milestone: 4.11.14.11.2

comment:7 Changed on 03/23/17 at 01:03:28 by Chris Johns

Milestone: 4.11.24.11.3

The 4.11.2 milestone is closing.

comment:8 Changed on 02/05/18 at 05:49:58 by Chris Johns

Milestone: 4.11.3Indefinite

Needs funding.

comment:9 Changed on 12/15/22 at 16:50:31 by Joel Sherrill

Resolution: fixed
Status: assignedclosed

This appears to be fixed in the current source. Closing. Reopen if I missed something.

https://git.rtems.org/rtems-tools/tree/misc/bin2c/rtems-bin2c.c#n240

Note: See TracTickets for help on using tickets.