On Sun, 7 Jan 2018 19:14:03 +0000 andy pugh <bodge...@gmail.com> wrote:
> On 7 January 2018 at 18:51, Nicklas Karlsson > <nicklas.karlsso...@gmail.com> wrote: > > >> Just choose another driver that does get compiled (such as hal_motenc) > >> and replicate all the same lines in the Makefile for your driver. > > > > Tried this but it does not compile while others do. I searched differences > > and there is some magic because my new file is not compiled while others > > are. > > You need new entries in several parts of the makefile. Three places: obj-$(CONFIG_ETHERCAT) += ethercat.o ethercat-objs := \ hal/drivers/ethercat.o \ $(MATHSTUB) ../rtlib/ethercat$(MODULE_EXT): $(addprefix objects/rt,$(ethercat-objs)) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users