Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions modules/kernel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,5 @@ in
rm -f verity_*.x509
openssl x509 -outform der -in ${config.signing.avb.verityCert} -out verity_user.der.x509
'';

# We have to replace files here, instead of just using the
# config.build.kernel drv output in place of source.dirs.${cfg.relpath}.
# This is because there are some additional things in the prebuilt kernel
# output directory like kernel headers for sunfish under device/google/sunfish-kernel/sm7150
source = mkIf cfg.enable {
dirs.${cfg.relpath}.postPatch = ''
# Warn if we have prebuilt files that we aren't replacing
for filename in *; do
if [[ -f "$filename" && ! -f "${config.build.kernel}/$filename" ]]; then
echo "WARNING: Not replacing $filename"
fi
done

cp -f ${config.build.kernel}/* .
'';
};
};
}
Loading