Changeset 842c238 in rtems-libbsd


Ignore:
Timestamp:
Jul 9, 2012, 10:21:36 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
237c763
Parents:
9c99de7
Message:

Makefile: updated to probably install architecture specific .h files

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r9c99de7 r842c238  
    453453        $(MAKE) $(LIB)
    454454
     455CPU_SED  = sed
     456CPU_SED += -e '/arm/d'
     457CPU_SED += -e '/i386/d'
     458CPU_SED += -e '/powerpc/d'
     459CPU_SED += -e '/mips/d'
     460CPU_SED += -e '/sparc/d'
     461CPU_SED += -e '/sparc64/d'
     462
    455463install: $(LIB)
    456464        install -d $(INSTALL_BASE)/include
    457465        install -c -m 644 $(LIB) $(INSTALL_BASE)
    458         cd rtemsbsd; for i in `find . -name '*.h'` ; do \
     466        cd rtemsbsd; for i in `find . -name '*.h' | $(CPU_SED)` ; do \
    459467          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
    460         for i in `find contrib freebsd -name '*.h'` ; do \
     468        for i in `find contrib freebsd -name '*.h' | $(CPU_SED)` ; do \
     469          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
     470        cd freebsd/$(RTEMS_CPU)/include ; for i in `find . -name '*.h'` ; do \
    461471          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
    462472
  • freebsd-to-rtems.py

    r9c99de7 r842c238  
    373373                        '\t$(MAKE) $(LIB)\n' \
    374374                        '\n' \
     375                        'CPU_SED  = sed\n' \
     376                        'CPU_SED += -e \'/arm/d\'\n' \
     377                        'CPU_SED += -e \'/i386/d\'\n' \
     378                        'CPU_SED += -e \'/powerpc/d\'\n' \
     379                        'CPU_SED += -e \'/mips/d\'\n' \
     380                        'CPU_SED += -e \'/sparc/d\'\n' \
     381                        'CPU_SED += -e \'/sparc64/d\'\n' \
     382                        '\n' \
    375383                        'install: $(LIB)\n' \
    376384                        '\tinstall -d $(INSTALL_BASE)/include\n' \
    377385                        '\tinstall -c -m 644 $(LIB) $(INSTALL_BASE)\n' \
    378                         '\tcd rtemsbsd; for i in `find . -name \'*.h\'` ; do \\\n' \
     386                        '\tcd rtemsbsd; for i in `find . -name \'*.h\' | $(CPU_SED)` ; do \\\n' \
    379387                        '\t  install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done\n' \
    380                         '\tfor i in `find contrib freebsd -name \'*.h\'` ; do \\\n' \
     388                        '\tfor i in `find contrib freebsd -name \'*.h\' | $(CPU_SED)` ; do \\\n' \
     389                        '\t  install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done\n' \
     390                        '\tcd freebsd/$(RTEMS_CPU)/include ; for i in `find . -name \'*.h\'` ; do \\\n' \
    381391                        '\t  install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done\n' \
    382392                        '\n' \
Note: See TracChangeset for help on using the changeset viewer.