cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
deboleena18
Visitor
Visitor
5,879 Views
Registered: ‎06-17-2013

Error: File name too long : Building linux-xilinx kernel

Jump to solution

hi i m getting the following error, irrespective of the make target

this is just one example with target as clean

 

droy@m4210-01 ~/linux-xlnx-master $ make ARCH=microblaze clean
scripts/Makefile.clean:17: /home/droy/linux-xlnx-master/drivers/net/ethernet/smsc/Makefile: File name too long
make[4]: stat: /home/droy/linux-xlnx-master/drivers/net/ethernet/smsc/Makefile: File name too long
make[4]: *** No rule to make target `/home/droy/linux-xlnx-master/drivers/net/ethernet/smsc/Makefile'.  Stop.
make[3]: *** [drivers/net/ethernet/smsc] Error 2
make[2]: *** [drivers/net/ethernet] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [_clean_drivers] Error 2

 

additional info

downloaded linux-xilinx kernel from xilinx github

board - ml509 (xupv5lx110t)

 

this is my first time with linux on fpga´s, so please tell me what i m missing and what can be done.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
deboleena18
Visitor
Visitor
7,484 Views
Registered: ‎06-17-2013

the problem was in the makefile,

it was not a file but somekind of a link to a set of commands

 

droy@m4210-01 ~/xlnx $ cd /home/droy/xlnx/drivers/net/ethernet/smsc/
droy@m4210-01 ~/xlnx/drivers/net/ethernet/smsc $ ls -l
total 512
-rw-r--r-- 1 droy droy 45583 Apr  4 01:48 epic100.c
-rw-r--r-- 1 droy droy  4598 Apr  4 01:48 Kconfig
lrwxrwxrwx 1 droy droy   312 Jun 13 15:32 Makefile -> #?# Makefile for the SMSC network device drivers.?#??obj-$(CONFIG_SMC9194) += smc9194.o?obj-$(CONFIG_SMC91X) += smc91x.o?obj-$(CONFIG_PCMCIA_SMC91C92) += smc91c92_cs.o?obj-$(CONFIG_EPIC100) += epic100.o?obj-$(CONFIG_SMSC9420) += smsc9420.o?obj-$(CONFIG_SMC911X) += smc911x.o?obj-$(CONFIG_SMSC911X) += smsc911x.o?
-rw-r--r-- 1 droy droy 58586 Apr  4 01:48 smc911x.c
-rw-r--r-- 1 droy droy 32949 Apr  4 01:48 smc911x.h
-rw-r--r-- 1 droy droy 44236 Apr  4 01:48 smc9194.c
-rw-r--r-- 1 droy droy  6859 Apr  4 01:48 smc9194.h
-rw-r--r-- 1 droy droy 60215 Apr  4 01:48 smc91c92_cs.c
-rw-r--r-- 1 droy droy 63310 Apr  4 01:48 smc91x.c
-rw-r--r-- 1 droy droy 35322 Apr  4 01:48 smc91x.h
-rw-r--r-- 1 droy droy 70041 Apr  4 01:48 smsc911x.c
-rw-r--r-- 1 droy droy 12546 Apr  4 01:48 smsc911x.h
-rw-r--r-- 1 droy droy 44674 Apr  4 01:48 smsc9420.c
-rw-r--r-- 1 droy droy  8584 Apr  4 01:48 smsc9420.h

 

so i instead created a makefile and put the the commands in that and it worked.

View solution in original post

0 Kudos
2 Replies
deboleena18
Visitor
Visitor
7,485 Views
Registered: ‎06-17-2013

the problem was in the makefile,

it was not a file but somekind of a link to a set of commands

 

droy@m4210-01 ~/xlnx $ cd /home/droy/xlnx/drivers/net/ethernet/smsc/
droy@m4210-01 ~/xlnx/drivers/net/ethernet/smsc $ ls -l
total 512
-rw-r--r-- 1 droy droy 45583 Apr  4 01:48 epic100.c
-rw-r--r-- 1 droy droy  4598 Apr  4 01:48 Kconfig
lrwxrwxrwx 1 droy droy   312 Jun 13 15:32 Makefile -> #?# Makefile for the SMSC network device drivers.?#??obj-$(CONFIG_SMC9194) += smc9194.o?obj-$(CONFIG_SMC91X) += smc91x.o?obj-$(CONFIG_PCMCIA_SMC91C92) += smc91c92_cs.o?obj-$(CONFIG_EPIC100) += epic100.o?obj-$(CONFIG_SMSC9420) += smsc9420.o?obj-$(CONFIG_SMC911X) += smc911x.o?obj-$(CONFIG_SMSC911X) += smsc911x.o?
-rw-r--r-- 1 droy droy 58586 Apr  4 01:48 smc911x.c
-rw-r--r-- 1 droy droy 32949 Apr  4 01:48 smc911x.h
-rw-r--r-- 1 droy droy 44236 Apr  4 01:48 smc9194.c
-rw-r--r-- 1 droy droy  6859 Apr  4 01:48 smc9194.h
-rw-r--r-- 1 droy droy 60215 Apr  4 01:48 smc91c92_cs.c
-rw-r--r-- 1 droy droy 63310 Apr  4 01:48 smc91x.c
-rw-r--r-- 1 droy droy 35322 Apr  4 01:48 smc91x.h
-rw-r--r-- 1 droy droy 70041 Apr  4 01:48 smsc911x.c
-rw-r--r-- 1 droy droy 12546 Apr  4 01:48 smsc911x.h
-rw-r--r-- 1 droy droy 44674 Apr  4 01:48 smsc9420.c
-rw-r--r-- 1 droy droy  8584 Apr  4 01:48 smsc9420.h

 

so i instead created a makefile and put the the commands in that and it worked.

View solution in original post

0 Kudos
andrewop
Newbie
Newbie
4,591 Views
Registered: ‎08-20-2014

Hello

 

use long path tool, it is easy to use and solve your problem

 

_______________

0 Kudos