#1755 closed defect

rtems-bin2c not friendly for files in other directories — at Initial Version

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

Description

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.

Change History (1)

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

Note: See TracTickets for help on using tickets.