Compilation of AP_Periph for STM32F102xxx devices

Hello folks. Recently, i am trying to compile AP_Periph for stm32f302c8tx devices. In documentation [AP_Periph — Dev documentation], it does not say STM32F102XXX devices specifically but it also does not say you can not do it. Since new MCUs are applicable, i thought it is possible. The fact is that stm32f302c8tx that i own has only 64KB flash. I’ve compiled AP_Periph for STM32F303xxx devices(f303-GPS). It is giving outputs as below.

With bootloader, it is exceeds the flash size of STM32F302 device. Because of this, i didn’t write any hwdef.dat file for my MCU yet, because it is obviously not gonna fit in my device’s flash. I am also wondering about ChibiOS support for STM32F302xxx devices. They also did not mentioned the support for STM32F302xxx devices specifically. Here are my questions:

1- What can i do to compile AP_Periph stack for STM32F302xxx devices?
2- Does flash size can be reduced? I played with AP_HAL class, it is possible, but i do not think it is right way.
3- In my device, i only need CAN Peripheral and GPIO pins, so the others are not needed. Since they are also included to the output, it might be the reason of larger flash sizes. How can i reduce the flash size to use just CAN and GPIO pins?

It would be great if you give recommendations to me, thank you.