mirror of
https://github.com/laanwj/k210-sdk-stuff.git
synced 2024-11-22 01:16:20 +04:00
linux: Optimize binaries for size
This commit is contained in:
parent
2819afaae5
commit
0ebae26c05
@ -1,5 +1,5 @@
|
|||||||
CROSS ?= /opt/riscv64-uclibc/bin/riscv64-buildroot-linux-uclibc-
|
CROSS ?= /opt/riscv64-uclibc/bin/riscv64-buildroot-linux-uclibc-
|
||||||
CFLAGS = -fPIC -Wl,-elf2flt=-r -Wall
|
CFLAGS = -fPIC -Wl,-elf2flt=-r -Wall -Os
|
||||||
BINARIES = term esptun
|
BINARIES = term esptun
|
||||||
|
|
||||||
all: $(BINARIES)
|
all: $(BINARIES)
|
||||||
|
@ -337,7 +337,7 @@ static bool esp_read_responses(int fd, bool early_terminate)
|
|||||||
size_t ptr = 0;
|
size_t ptr = 0;
|
||||||
while (ptr < esp_end) {
|
while (ptr < esp_end) {
|
||||||
const uint8_t *resp = &esp_buffer[ptr];
|
const uint8_t *resp = &esp_buffer[ptr];
|
||||||
struct packet_info pkt_info;
|
struct packet_info pkt_info = {};
|
||||||
size_t len = esp_response_is_complete(resp, esp_end - ptr, &pkt_info);
|
size_t len = esp_response_is_complete(resp, esp_end - ptr, &pkt_info);
|
||||||
if (len) {
|
if (len) {
|
||||||
logprintf(DEBUG, "<-: ");
|
logprintf(DEBUG, "<-: ");
|
||||||
|
Loading…
Reference in New Issue
Block a user