| 218 | To get qemu to recognize new source files, it's necessary to add the new source files to the system. Below is the change to the hw/Makefile.objs and default-configs/pci.mak to get the qemu build system to recognize can-pci.o as one of the qemu objects. |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | For simplicity of the project, instead of implementing CONFIG_CAN, it is hard-coded to y. |
| 224 | |
| 225 | '''Possible Improvement:''' In later summers of code, $(CONFIG_CAN) could be made configurable, to ease getting accepted into the qemu head. This would require tracing down all the changes needed to implement CONFIG_CAN |
| 226 | |
| 227 | hw/Makefile.objs |
| 228 | |
| 229 | @@ -27,6 +27,7 @@ common-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o |
| 230 | |
| 231 | common-obj-$(CONFIG_SERIAL) += serial.o serial-isa.o |
| 232 | common-obj-$(CONFIG_SERIAL_PCI) += serial-pci.o |
| 233 | +common-obj-y += can-pci.o |
| 234 | common-obj-$(CONFIG_PARALLEL) += parallel.o |
| 235 | common-obj-$(CONFIG_I8254) += i8254_common.o i8254.o |
| 236 | common-obj-$(CONFIG_PCSPK) += pcspk.o |
| 237 | |
| 238 | |
| 239 | |
| 240 | |
| 241 | |
| 242 | |
| 243 | |
| 244 | |
| 245 | |
| 246 | |
316 | | |
317 | | |
318 | | |
319 | | |
320 | | |
321 | | |
322 | | |
323 | | |
324 | | |
325 | | Based upon http://jin-yang.github.io/2013/07/25/add-pcidevice-to-qemu.html, |
326 | | |
327 | | https://github.com/Jin-Yang/QEMU-1.4.2/commit/ffef2998d0208547031887aab2ae2fc7780f2ea4, |
328 | | |
329 | | and https://github.com/Jin-Yang/QEMU-1.4.2/commit/a37c1c0ce934f15c36688bf88a94d94e19f1f6c3 |
330 | | |
331 | | written by Jin Yang during the summer of 2013 |
332 | | |
333 | | == hw/Makefile.objs == |
334 | | |
335 | | To get qemu to recognize new source files, it's necessary to add the new source files to the system. Below is the change to the hw/Makefile.objs to get the qemu build system to recognize can-pci.o as one of the qemu objects. For simplicity of the project, instead of implementing CONFIG_CAN, it is hard-coded to y. |
336 | | |
337 | | '''Possible Improvement:''' In later summers of code, $(CONFIG_CAN) could be made configurable, to ease getting accepted into the qemu head. This would require tracing down all the changes needed to implement CONFIG_CAN |
338 | | |
339 | | hw/Makefile.objs |
340 | | |
341 | | @@ -27,6 +27,7 @@ common-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o |
342 | | |
343 | | common-obj-$(CONFIG_SERIAL) += serial.o serial-isa.o |
344 | | common-obj-$(CONFIG_SERIAL_PCI) += serial-pci.o |
345 | | +common-obj-y += can-pci.o |
346 | | common-obj-$(CONFIG_PARALLEL) += parallel.o |
347 | | common-obj-$(CONFIG_I8254) += i8254_common.o i8254.o |
348 | | common-obj-$(CONFIG_PCSPK) += pcspk.o |