File tree 2 files changed +34
-10
lines changed
2 files changed +34
-10
lines changed Original file line number Diff line number Diff line change 1
- gpu_cfg_generator.o : gpu_cfg_generator.c gpu_cfg_generator.h
1
+ .PHONY : native clean
2
+
3
+ gpu_cfg_generator.exe : gpu_cfg_generator
4
+ cp gpu_cfg_gen gpu_cfg_gen.exe
5
+
6
+ gpu_cfg_generator : gpu_cfg_generator.c gpu_cfg_generator.h
2
7
../cosmopolitan/bin/cosmocc -o gpu_cfg_gen gpu_cfg_generator.c
8
+
9
+ native : gpu_cfg_generator.c gpu_cfg_generator.h
10
+ $(CC ) -o gpu_cfg_gen gpu_cfg_generator.c -Wall
3
11
4
12
5
13
clean :
Original file line number Diff line number Diff line change 1
1
# build notes
2
2
3
- uses
4
- https://github.com/jart/cosmopolitan
3
+ Uses [ cosmpopolitan] ( https://github.com/jart/cosmopolitan ) .
5
4
6
- extract cosmopolitan one folder up
5
+ Extract cosmopolitan release zip one folder up.
7
6
7
+ ``` sh
8
8
run make
9
+ ```
9
10
11
+ To use it on windows, rename ` gpu_cfg_gen ` to ` gpu_cfg_gen.exe ` .
10
12
11
- to use on windows rename
12
13
13
- gpu_cfg_gen to gpu_cfg_gen.exe
14
14
15
+ # Running
16
+ When the application is run, pass in the serial, and for the GPU, the PCB serial.
17
+ The application will generate a ` .bin ` file in the same directory with the EEPROM contents.
15
18
16
-
17
- # Running
18
- when the application is run, pass in the serial, and for the GPU, the PCB serial.
19
- The application will generate a .bin file in the same directory with the EEPROM contents
20
19
## Generate GPU Serial
21
20
21
+ ```
22
22
./gpu_cfg_gen -g -s FRAKMBCP81331ASSY0 -p FRAGMASP81331PCB00
23
+ ```
23
24
24
25
25
26
## Generate SSD
26
27
28
+ ```
27
29
./gpu_cfg_gen -d -s FRAKMBCP81331ASSY0
30
+ ```
31
+
32
+ # Build natively
33
+
34
+ While the regular build builds a single executable that runs on Linux and
35
+ Windows, for development purpose you might want to build using native tooling.
36
+
37
+ ``` sh
38
+ # With GCC
39
+ make native CC=gcc
40
+
41
+ # With clang
42
+ make native CC=clang
43
+ ```
You can’t perform that action at this time.
0 commit comments