Skip to content

Commit 73d273d

Browse files
committed
run_qemu.sh: run mkdir _after_ "make kernelrelease"
"make kernelrelease" is the first command that fails when run_qemu.sh is run in the wrong directory. Detect we're run in a wrong directory _before_ creating various build directories, this avoids having to clean them up. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 6c2a047 commit 73d273d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

run_qemu.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -617,11 +617,6 @@ __build_kernel()
617617
quiet="--quiet"
618618
fi
619619

620-
mkdir -p "$inst_path"
621-
# /lib -> /usr/lib
622-
mkdir -p "${inst_prefix}/usr/lib"
623-
ln -sf usr/lib "${inst_prefix}/lib"
624-
625620
if [[ $_arg_defconfig == "on" ]]; then
626621
make $quiet olddefconfig
627622
make $quiet prepare
@@ -630,6 +625,11 @@ __build_kernel()
630625
test -n "$kver"
631626
make $quiet -j"$num_build_cpus"
632627

628+
mkdir -p "$inst_path"
629+
# /lib -> /usr/lib
630+
mkdir -p "${inst_prefix}/usr/lib"
631+
ln -sf usr/lib "${inst_prefix}/lib"
632+
633633
# Install Modules Strip = ims
634634
local ims=""
635635
if [[ $_arg_strip_modules == "on" ]]; then

0 commit comments

Comments
 (0)