From 2fe08d61f86c600a088f908b44ab0ef99f156dee Mon Sep 17 00:00:00 2001 From: Dima Krasner Date: Thu, 25 Apr 2019 11:01:18 +0300 Subject: [PATCH] Wrapped the ath9k_htc firmware cross-compiler with ccache --- devsus.sh | 2 +- xtensa-elf-gcc | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 xtensa-elf-gcc diff --git a/devsus.sh b/devsus.sh index 7a21c6c..e6e2da7 100755 --- a/devsus.sh +++ b/devsus.sh @@ -125,7 +125,7 @@ then else make toolchain fi - make -C target_firmware + CROSS_COMPILE=$here/xtensa-elf- make -C target_firmware mv toolchain/inst ../dl/xtensa-toolchain cd .. diff --git a/xtensa-elf-gcc b/xtensa-elf-gcc new file mode 100755 index 0000000..5f19674 --- /dev/null +++ b/xtensa-elf-gcc @@ -0,0 +1,22 @@ +#!/bin/sh + +# this file is part of Devsus. +# +# Copyright 2019 Dima Krasner +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301, USA. + +CCACHE_HASHDIR=false exec ccache /root/devsus/open-ath9k-htc-firmware/toolchain/inst/bin/xtensa-elf-gcc "$@"