introduce modules/arch/{mipsel,mipseb}.nix

for settings that are common to all mipse[lb] but would not be shared
with e.g. aarch64 or x86
This commit is contained in:
Daniel Barlow
2023-09-20 17:27:04 +01:00
parent 12b9feb8ee
commit f75995e895
7 changed files with 37 additions and 11 deletions

View File

@@ -26,7 +26,8 @@
drivers = ["rt2800soc"];
klibBuild = config.system.outputs.kernel.modulesupport;
};
in {
in {
imports = [ ../../modules/arch/mipsel.nix ];
hardware = {
defaultOutput = "flashimage";
loadAddress = "0x80000000";
@@ -107,7 +108,6 @@
${openwrt.applyPatches.ramips}
'';
config = {
MIPS_ELF_APPENDED_DTB = "y";
OF = "y";
USE_OF = "y";
@@ -143,8 +143,6 @@
MTD_CMDLINE_PARTS = "y";
MTD_BLOCK = "y"; # fix undefined ref to register_mtd_blktrans_devs
CPU_LITTLE_ENDIAN = "y";
CMDLINE_PARTITION = "y";
EARLY_PRINTK = "y";