Commits

Ross Light committed 0b7f272

Change hard-coded path to PREFIX in patch

  • Participants
  • Parent commits 674286a

Comments (0)

Files changed (2)

 # Patch!
 echo "Patching..."
 cd "$SRC/gccdist/WindRiver/vxworks-6.3/target/h"
-sed "s:/usr/local/powerpc-wrs-vxworks:$(echo $PREFIX):" < "$PATCHROOT/vxworks-headers.patch" | patch -p1
+sed "s:PREFIX:$(echo $PREFIX):" < "$PATCHROOT/vxworks-headers.patch" | patch -p1
 cd "$SRC/gcc-$GCC_VERSION"
 patch -p2 < "$PATCHROOT/gcc-diff.patch" # -p2 intentional.
 

vxworks-headers.patch

  #include <classLib.h>
  #include <qLib.h>
 -#include <regs.h>
-+#include "/usr/local/powerpc-wrs-vxworks/powerpc-wrs-vxworks/sys-include/regs.h"
++#include "PREFIX/powerpc-wrs-vxworks/sys-include/regs.h"
  #include <excLib.h>
  #include <private/eventP.h>
  #include <private/semLibP.h>