Unverified Commit 2464d604 authored by Earle F. Philhower, III's avatar Earle F. Philhower, III Committed by GitHub

Merge pull request #36 from earlephilhower/libp1

Remove stdio hacks from libpico.a
parents a28d6dad 90ba9424
No preview for this file type
...@@ -13,55 +13,56 @@ pico_sdk_init() ...@@ -13,55 +13,56 @@ pico_sdk_init()
add_library(pico STATIC) add_library(pico STATIC)
target_compile_definitions(pico PUBLIC target_compile_definitions(pico PUBLIC
PICO_PRINTF_ALWAYS_INCLUDED=1 ) PICO_PRINTF_ALWAYS_INCLUDED=1
)
target_link_libraries(pico target_link_libraries(pico
boot_stage2 boot_stage2
hardware_adc hardware_adc
hardware_base hardware_base
hardware_claim hardware_claim
hardware_clocks hardware_clocks
hardware_divider hardware_divider
hardware_dma hardware_dma
hardware_flash hardware_flash
hardware_gpio hardware_gpio
hardware_i2c hardware_i2c
hardware_interp hardware_interp
hardware_irq hardware_irq
hardware_pio hardware_pio
hardware_pll hardware_pll
hardware_pwm hardware_pwm
hardware_resets hardware_resets
hardware_rtc hardware_rtc
hardware_spi hardware_spi
hardware_sync hardware_sync
hardware_timer hardware_timer
hardware_uart hardware_uart
hardware_vreg hardware_vreg
hardware_watchdog hardware_watchdog
hardware_xosc hardware_xosc
pico_bit_ops pico_bit_ops
pico_bootrom pico_bootrom
pico_bootsel_via_double_reset pico_bootsel_via_double_reset
pico_cxx_options pico_cxx_options
pico_divider pico_divider
pico_double pico_double
pico_fix pico_fix
pico_float pico_float
pico_int64_ops pico_int64_ops
pico_malloc pico_malloc
pico_mem_ops pico_mem_ops
pico_multicore pico_multicore
pico_platform pico_platform
pico_runtime pico_runtime
pico_standard_link pico_standard_link
pico_stdio pico_stdio_usb
pico_stdio_usb pico_stdlib
pico_stdlib pico_unique_id
pico_unique_id tinyusb
tinyusb
) )
add_custom_command(TARGET pico PRE_BUILD 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/ 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 ...@@ -69,6 +70,5 @@ add_custom_command(TARGET pico PRE_BUILD
add_custom_command(TARGET pico POST_BUILD add_custom_command(TARGET pico POST_BUILD
COMMAND ar d libpico.a crt0.S.obj COMMAND ar d libpico.a crt0.S.obj
COMMAND ar r libpico.a crt0.o COMMAND ar r libpico.a crt0.o
) COMMAND ar d libpico.a stdio.c.obj stdio_usb.c.obj stdio_usb_descriptors.c.obj
# COMMAND ar dv libpico.a stdio_uart.c.obj stdio.c.obj printf.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