mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-06-21 13:22:40 +02:00
Added -ffunction-sections to Makefiles. Updated usbds comments.
This commit is contained in:
parent
1563992d42
commit
3f363c5735
@ -41,7 +41,7 @@ EXEFS_SRC := exefs_src
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
|
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
|
||||||
|
|
||||||
CFLAGS := -g -Wall -O2 \
|
CFLAGS := -g -Wall -O2 -ffunction-sections \
|
||||||
$(ARCH) $(DEFINES)
|
$(ARCH) $(DEFINES)
|
||||||
|
|
||||||
CFLAGS += $(INCLUDE) -DSWITCH
|
CFLAGS += $(INCLUDE) -DSWITCH
|
||||||
|
@ -41,7 +41,7 @@ EXEFS_SRC := exefs_src
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
|
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
|
||||||
|
|
||||||
CFLAGS := -g -Wall -O2 \
|
CFLAGS := -g -Wall -O2 -ffunction-sections \
|
||||||
$(ARCH) $(DEFINES)
|
$(ARCH) $(DEFINES)
|
||||||
|
|
||||||
CFLAGS += $(INCLUDE) -DSWITCH
|
CFLAGS += $(INCLUDE) -DSWITCH
|
||||||
|
@ -41,7 +41,7 @@ EXEFS_SRC := exefs_src
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
|
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
|
||||||
|
|
||||||
CFLAGS := -g -Wall -O2 \
|
CFLAGS := -g -Wall -O2 -ffunction-sections \
|
||||||
$(ARCH) $(DEFINES)
|
$(ARCH) $(DEFINES)
|
||||||
|
|
||||||
CFLAGS += $(INCLUDE) -DSWITCH
|
CFLAGS += $(INCLUDE) -DSWITCH
|
||||||
|
@ -41,7 +41,7 @@ EXEFS_SRC := exefs_src
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
|
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
|
||||||
|
|
||||||
CFLAGS := -g -Wall -O2 \
|
CFLAGS := -g -Wall -O2 -ffunction-sections \
|
||||||
$(ARCH) $(DEFINES)
|
$(ARCH) $(DEFINES)
|
||||||
|
|
||||||
CFLAGS += $(INCLUDE) -DSWITCH
|
CFLAGS += $(INCLUDE) -DSWITCH
|
||||||
|
@ -41,7 +41,7 @@ EXEFS_SRC := exefs_src
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
|
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
|
||||||
|
|
||||||
CFLAGS := -g -Wall -O2 \
|
CFLAGS := -g -Wall -O2 -ffunction-sections \
|
||||||
$(ARCH) $(DEFINES)
|
$(ARCH) $(DEFINES)
|
||||||
|
|
||||||
CFLAGS += $(INCLUDE) -DSWITCH
|
CFLAGS += $(INCLUDE) -DSWITCH
|
||||||
|
@ -41,7 +41,7 @@ EXEFS_SRC := exefs_src
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
|
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
|
||||||
|
|
||||||
CFLAGS := -g -Wall -O2 \
|
CFLAGS := -g -Wall -O2 -ffunction-sections \
|
||||||
$(ARCH) $(DEFINES)
|
$(ARCH) $(DEFINES)
|
||||||
|
|
||||||
CFLAGS += $(INCLUDE) -DSWITCH
|
CFLAGS += $(INCLUDE) -DSWITCH
|
||||||
|
@ -6,8 +6,7 @@
|
|||||||
|
|
||||||
//Example for usbds, see libnx usb.h. Switch-as-device<>host USB comms.
|
//Example for usbds, see libnx usb.h. Switch-as-device<>host USB comms.
|
||||||
//Linux detects this as a serial device.
|
//Linux detects this as a serial device.
|
||||||
//For using serial via usbds in general, see the usbdev example.
|
//See libnx usb_comms.c/usb.h for getting actual-transfer-size after using usbDsEndpoint_PostBufferAsync.
|
||||||
//See libnx usbdev.c/usb.h for getting actual-transfer-size after using usbDsEndpoint_PostBufferAsync.
|
|
||||||
|
|
||||||
Result usbds_test(u8 *tmpbuf)
|
Result usbds_test(u8 *tmpbuf)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user