Remove stdio hacks from libpico.a

Fixes #35
parent a28d6dad
No preview for this file type
......@@ -13,55 +13,56 @@ pico_sdk_init()
add_library(pico STATIC)
target_compile_definitions(pico PUBLIC
PICO_PRINTF_ALWAYS_INCLUDED=1 )
PICO_PRINTF_ALWAYS_INCLUDED=1
)
target_link_libraries(pico
boot_stage2
hardware_adc
hardware_base
hardware_claim
hardware_clocks
hardware_divider
hardware_dma
hardware_flash
hardware_gpio
hardware_i2c
hardware_interp
hardware_irq
hardware_pio
hardware_pll
hardware_pwm
hardware_resets
hardware_rtc
hardware_spi
hardware_sync
hardware_timer
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
pico_bit_ops
pico_bootrom
pico_bootsel_via_double_reset
pico_cxx_options
pico_divider
pico_double
pico_fix
pico_float
pico_int64_ops
pico_malloc
pico_mem_ops
pico_multicore
pico_platform
pico_runtime
pico_standard_link
pico_stdio
pico_stdio_usb
pico_stdlib
pico_unique_id
tinyusb
hardware_adc
hardware_base
hardware_claim
hardware_clocks
hardware_divider
hardware_dma
hardware_flash
hardware_gpio
hardware_i2c
hardware_interp
hardware_irq
hardware_pio
hardware_pll
hardware_pwm
hardware_resets
hardware_rtc
hardware_spi
hardware_sync
hardware_timer
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
pico_bit_ops
pico_bootrom
pico_bootsel_via_double_reset
pico_cxx_options
pico_divider
pico_double
pico_fix
pico_float
pico_int64_ops
pico_malloc
pico_mem_ops
pico_multicore
pico_platform
pico_runtime
pico_standard_link
pico_stdio_usb
pico_stdlib
pico_unique_id
tinyusb
)
add_custom_command(TARGET pico PRE_BUILD
COMMAND ../../system/arm-none-eabi/bin/arm-none-eabi-gcc -g -c ../../assembly/crt0.S -I ../../pico-sdk/src/rp2040/hardware_regs/include -I ../../pico-sdk/src/common/pico_binary_info/include/
)
......@@ -69,6 +70,5 @@ add_custom_command(TARGET pico PRE_BUILD
add_custom_command(TARGET pico POST_BUILD
COMMAND ar d libpico.a crt0.S.obj
COMMAND ar r libpico.a crt0.o
)
# COMMAND ar dv libpico.a stdio_uart.c.obj stdio.c.obj printf.c.obj
COMMAND ar d libpico.a stdio.c.obj stdio_usb.c.obj stdio_usb_descriptors.c.obj
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment