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
inherit (lib) mkIf;
openwrt = pkgs.openwrt;
firmwareBlobs = pkgs.pkgsBuildBuild.fetchFromGitHub {
owner = "kvalo";
repo = "ath10k-firmware";
firmwareBlobs = pkgs.pkgsBuildBuild.fetchgit {
url = "https://git.codelinaro.org/clo/ath-firmware/ath10k-firmware";
rev = "5d63529ffc6e24974bc7c45b28fd1c34573126eb";
sha256 = "1bwpifrwl5mvsmbmc81k8l22hmkwk05v7xs8dxag7fgv2kd6lv2r";
};

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