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

@@ -61,9 +61,8 @@ OpenWrt web page: https://openwrt.org/toh/gl.inet/gl-ar750
let let
inherit (lib) mkIf; inherit (lib) mkIf;
openwrt = pkgs.openwrt; openwrt = pkgs.openwrt;
firmwareBlobs = pkgs.pkgsBuildBuild.fetchFromGitHub { firmwareBlobs = pkgs.pkgsBuildBuild.fetchgit {
owner = "kvalo"; url = "https://git.codelinaro.org/clo/ath-firmware/ath10k-firmware";
repo = "ath10k-firmware";
rev = "5d63529ffc6e24974bc7c45b28fd1c34573126eb"; rev = "5d63529ffc6e24974bc7c45b28fd1c34573126eb";
sha256 = "1bwpifrwl5mvsmbmc81k8l22hmkwk05v7xs8dxag7fgv2kd6lv2r"; sha256 = "1bwpifrwl5mvsmbmc81k8l22hmkwk05v7xs8dxag7fgv2kd6lv2r";
}; };

View File

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

View File

@@ -24,6 +24,11 @@ stdenv.mkDerivation {
phases = [ "buildPhase" ]; phases = [ "buildPhase" ];
nativeBuildInputs = [ dtc ]; nativeBuildInputs = [ dtc ];
buildPhase = '' 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} ${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 ${dtcSearchFlags} -I dts -O dtb -o $out dtb.tmp
# dtc -I dtb -O dts $out # dtc -I dtb -O dts $out