builder: add hack for openwrt < 19

This commit is contained in:
Astro 2022-04-30 01:31:26 +02:00
parent 658c02ecfa
commit 34afaff593
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ stdenv.mkDerivation {
lib.optional (!lib.versionAtLeast release "21") python2;
buildPhase = ''
${lib.optionalString (!lib.versionAtLeast release "19") ''
# Hack around broken check for gcc
touch staging_dir/host/.prereq-build
''}
make image SHELL=${runtimeShell} \
PROFILE="${profile}" \
PACKAGES="${lib.concatStringsSep " " packages}" \