All of lore.kernel.org
 help / color / mirror / Atom feed
* media_build: fails to install
@ 2017-05-31  0:57 Olli Salonen
  2017-06-03  5:26 ` Vincent McIntyre
  0 siblings, 1 reply; 2+ messages in thread
From: Olli Salonen @ 2017-05-31  0:57 UTC (permalink / raw)
  To: linux-media

It seems that I'm able to build the media_build correctly on Ubuntu
16.04.2 with kernel 4.8, but make install fails:

~/src/media_build$ sudo make install
make -C /home/olli/src/media_build/v4l install
make[1]: Entering directory '/home/olli/src/media_build/v4l'
make[1]: *** No rule to make target 'media-install', needed by 'install'.  Stop.
make[1]: Leaving directory '/home/olli/src/media_build/v4l'
Makefile:15: recipe for target 'install' failed
make: *** [install] Error 2

Full console log here:
http://paste.ubuntu.com/24720478/

Cheers,
-olli

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: media_build: fails to install
  2017-05-31  0:57 media_build: fails to install Olli Salonen
@ 2017-06-03  5:26 ` Vincent McIntyre
  0 siblings, 0 replies; 2+ messages in thread
From: Vincent McIntyre @ 2017-06-03  5:26 UTC (permalink / raw)
  To: Olli Salonen; +Cc: linux-media, hans.verkuil

On Wed, May 31, 2017 at 03:57:04AM +0300, Olli Salonen wrote:
> It seems that I'm able to build the media_build correctly on Ubuntu
> 16.04.2 with kernel 4.8, but make install fails:
> 
> ~/src/media_build$ sudo make install
> make -C /home/olli/src/media_build/v4l install
> make[1]: Entering directory '/home/olli/src/media_build/v4l'
> make[1]: *** No rule to make target 'media-install', needed by 'install'.  Stop.
> make[1]: Leaving directory '/home/olli/src/media_build/v4l'
> Makefile:15: recipe for target 'install' failed
> make: *** [install] Error 2
> 

I can confirm this issue.

The reason is that scripts/make_makefile.pl aborts

make[1]: Entering directory '/home/me/git/clones/media_build/v4l'^M            
scripts/make_makefile.pl^M                                                      
Can't handle includes! In ../linux/drivers/staging/media/atomisp/pci/atomisp2/css2400/Makefile at scripts/          make_makefile.pl line 109, <GEN152> line 4.^M

because that css2400/Makefile includes another:

$ cat ../linux/drivers/staging/media/atomisp/pci/atomisp2/css2400/Makefile

ccflags-y += -DISP2400B0
ISP2400B0 := y

include $(srctree)/$(src)/../Makefile.common

The abort of scripts/make_makefile.pl means that the v4l/Makefile
does not get completely written out, in particular the rules for
making the 'media-install' target.

I am not sure how to fix this. The make_makefile.pl deliberately
falls over when given an include to deal with, so there must be
some other mechanism in the media_build framework that handles
this kind of thing. But I am not aware of it. Hans, help pretty please?

Vince

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-03  5:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-31  0:57 media_build: fails to install Olli Salonen
2017-06-03  5:26 ` Vincent McIntyre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.