mob next [ci-skip] [ci skip] [skip ci]

lastFile:pkgs/kernel/default.nix
This commit is contained in:
2025-10-14 10:07:38 +07:00
parent 29fbb5461d
commit 9dd92ac53e
3 changed files with 16 additions and 3 deletions

View File

@@ -98,6 +98,11 @@ stdenv.mkDerivation rec {
checkConfigurationPhase = ''
echo Checking required config items:
echo ======================================================
echo ======================================================
echo ------------------------------------------------------
echo $modulesupport
echo ------------------------------------------------------
if comm -2 -3 <(grep 'CONFIG' ${kconfigFile} |sort) <(grep 'CONFIG' .config|sort) |grep '.' ; then
echo -e "^^^ Some configuration lost :-(\nPerhaps you have mutually incompatible settings, or have disabled options on which these depend.\n"
exit 0
@@ -119,5 +124,9 @@ stdenv.mkDerivation rec {
make modules
cp -a . $modulesupport
cp .config $config
echo ------------------------------------------------------
cat .config
echo $config
echo ------------------------------------------------------
'';
}

View File

@@ -24,6 +24,11 @@ stdenv.mkDerivation {
phases = [ "buildPhase" ];
nativeBuildInputs = [ dtc ];
buildPhase = ''
echo ==================================================
echo ${dtcSearchFlags}
echo ==
echo ${cppDtSearchFlags}
echo ==================================================
${stdenv.cc.targetPrefix}cpp -nostdinc -x assembler-with-cpp ${cppDtSearchFlags} -undef -D__DTS__ -o dtb.tmp ${combined}
dtc ${dtcSearchFlags} -I dts -O dtb -o $out dtb.tmp
# dtc -I dtb -O dts $out