gen_kheaders.sh (ea79e5168be644fdaf7d4e6a73eceaf07b3da76a) | gen_kheaders.sh (1463f74f492eea7191f0178e01f3d38371a48210) |
---|---|
1#!/bin/bash | 1#!/bin/sh |
2# SPDX-License-Identifier: GPL-2.0 3 4# This script generates an archive consisting of kernel headers 5# for CONFIG_IKHEADERS. 6set -e 7sfile="$(readlink -f "$0")" 8outdir="$(pwd)" 9tarfile=$1 --- 42 unchanged lines hidden (view full) --- 52if [ "${quiet}" != "silent_" ]; then 53 echo " GEN $tarfile" 54fi 55 56rm -rf $cpio_dir 57mkdir $cpio_dir 58 59if [ "$building_out_of_srctree" ]; then | 2# SPDX-License-Identifier: GPL-2.0 3 4# This script generates an archive consisting of kernel headers 5# for CONFIG_IKHEADERS. 6set -e 7sfile="$(readlink -f "$0")" 8outdir="$(pwd)" 9tarfile=$1 --- 42 unchanged lines hidden (view full) --- 52if [ "${quiet}" != "silent_" ]; then 53 echo " GEN $tarfile" 54fi 55 56rm -rf $cpio_dir 57mkdir $cpio_dir 58 59if [ "$building_out_of_srctree" ]; then |
60 pushd $srctree > /dev/null 61 for f in $dir_list 62 do find "$f" -name "*.h"; 63 done | cpio --quiet -pd $cpio_dir 64 popd > /dev/null | 60 ( 61 cd $srctree 62 for f in $dir_list 63 do find "$f" -name "*.h"; 64 done | cpio --quiet -pd $cpio_dir 65 ) |
65fi 66 67# The second CPIO can complain if files already exist which can happen with out 68# of tree builds having stale headers in srctree. Just silence CPIO for now. 69for f in $dir_list; 70 do find "$f" -name "*.h"; 71done | cpio --quiet -pd $cpio_dir >/dev/null 2>&1 72 --- 17 unchanged lines hidden --- | 66fi 67 68# The second CPIO can complain if files already exist which can happen with out 69# of tree builds having stale headers in srctree. Just silence CPIO for now. 70for f in $dir_list; 71 do find "$f" -name "*.h"; 72done | cpio --quiet -pd $cpio_dir >/dev/null 2>&1 73 --- 17 unchanged lines hidden --- |