Opened on 03/06/11 at 11:09:22
Last modified on 12/15/22 at 16:50:31
#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.
Patch to give acceptable guard define for path names