[Buildroot] [PATCH 2/2] qemu: add host/target Linux version check
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Thu May 21 08:27:26 UTC 2015
Dear Bernd Kuhls,
On Thu, 21 May 2015 09:51:43 +0200, Bernd Kuhls wrote:
> > +ifneq
> > ($(HOST_QEMU_COMPARE_VERSION_MAJOR)$(HOST_QEMU_COMPARE_VERSION_MINOR),OKO
> > K) +$(error "Refusing to build qemu-user: target Linux version newer
> > than host's.") +endif
>
> while testing an allyesconfig with "make source-check" this error was
> raised. I had to comment this line in order to run the source-check. Is it
> possible to run this check only during a build phase?
Yes, but that's not the proper solution. The proper solution is to
enclose the test with:
ifeq ($(BR_BUILDING),y)
...
endif
See how it's used in linux.mk or uboot.mk.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list