@@ -131,26 +131,22 @@ pub fn init(dep: *std.Build.Dependency) Self {
131
131
};
132
132
133
133
const bootrom_rp2040 = get_bootrom (b , & chip_rp2040 , .w25q080 );
134
- // Create a "bootloader" 'import', but it's actucally used to embed the file.
135
- // This file is just the flash xip bis?
136
- // But then why is the PICO_NO_FLASH relevant in the bootloader?
137
134
const rp2040_bootrom_imports = b .allocator .dupe (std .Build .Module .Import , &.{
138
135
.{ .name = "bootloader" , .module = b .createModule (.{ .root_source_file = bootrom_rp2040 }) },
139
136
}) catch @panic ("out of memory" );
140
137
141
138
return .{
142
139
.chips = .{
143
140
.rp2040 = chip_rp2040 .derive (.{}),
144
- // This should probably be a board? Here it's a mix of a flash-less pico, so rp2040 on its own, but with an external oscillator
141
+ // This should probably be a board? Here it's a mix of a flash-less pico, so rp2040 on
142
+ // its own, but with an external oscillator
145
143
.rp2040_ram_image = chip_rp2040 .derive (.{
146
144
.linker_script = b .path ("rp2040_ram_image.ld" ),
147
145
.board = .{
148
146
.name = "RaspberryPi Pico (ram image)" ,
149
147
.url = "https://www.raspberrypi.com/products/raspberry-pi-pico/" ,
150
- // Using pico2 because it doesn't need a bootloader, and we don't have flash for one
151
148
.root_source_file = b .path ("src/boards/raspberry_pi_pico2.zig" ),
152
149
},
153
- // TODO: Support overriding the memory regions? It's only used for linker generation?
154
150
}),
155
151
.rp2350_arm = chip_rp2350_arm .derive (.{}),
156
152
.rp2350_riscv = chip_rp2350_riscv .derive (.{}),
0 commit comments