Why wouldn’t you put the workaround in the file CONFIG.Common.RTEMS where you don’t need a conditional test?
I haven’t looked into why you’re only just noticing this now, but there are a few possibilities that I could come up with.
- Andrew
--
Sent from my iPad
> On Apr 17, 2018, at 8:44 PM, Michael Davidsaver <[email protected]> wrote:
>
> I realized that both Base and RTEMS define a Make macro $(MKDIR).
> Unfortunately the RTEMS definition lacks a '-p'. So using this
> to create eg '../O.Common/' will fail if it already exists.
>
>> configure/os/CONFIG.UnixCommon.Common:MKDIR = mkdir -p
>
>> make/host.cfg:MKDIR=mkdir
>
> The later is included through configure/os/CONFIG.Common.RTEMS
>
> This is being done to generate headers with module version numbers
> in the PVA modules. I'm wondering why I'm only finding this now?
>
> My workaround:
>
>> include $(TOP)/configure/CONFIG
>> ...
>> ifeq ($(OS_CLASS),RTEMS)
>> MKDIR = mkdir -p
>> endif
>
- Replies:
- Re: obscure EPICS+RTEMS makefile problem Michael Davidsaver
- References:
- obscure EPICS+RTEMS makefile problem Michael Davidsaver
- Navigate by Date:
- Prev:
PVA links alpha Michael Davidsaver
- Next:
Re: obscure EPICS+RTEMS makefile problem Michael Davidsaver
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
obscure EPICS+RTEMS makefile problem Michael Davidsaver
- Next:
Re: obscure EPICS+RTEMS makefile problem Michael Davidsaver
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
|