[Buildroot] [PATCH] kobs-ng: check Linux version for mtd enum redefine

Thomas De Schampheleire patrickdepinguin at gmail.com
Tue Oct 22 06:38:22 UTC 2013


Hi Sergey,

On Mon, Oct 21, 2013 at 6:33 PM, Sergey Alyoshin <alyoshin.s at gmail.com> wrote:
> With current  package/kobs-ng/kobs-ng-fix-mtd-defines.patch
> kobs-ng failed to build with 2.6.26, because enum tested with #ifndef
>
> mtd.c: In function 'mtd_open':
> mtd.c:696:42: error: 'MTD_FILE_MODE_NORMAL' undeclared (first use in
> this function)
> mtd.c:696:42: note: each undeclared identifier is reported only once
> for each function it appears in
> mtd.c: In function 'mtd_set_ecc_mode':
> mtd.c:896:43: error: 'MTD_FILE_MODE_NORMAL' undeclared (first use in
> this function)
> mtd.c:914:43: error: 'MTD_FILE_MODE_RAW' undeclared (first use in this function)
>
> Updated package/kobs-ng/kobs-ng-fix-mtd-defines_v2.patch is attached.
> Test built with Linux 2.6.36

Could you send a proper patch against buildroot, directly in the mail
(not attached)? Have a look at
http://buildroot.uclibc.org/downloads/manual/manual.html#_contributing_to_buildroot
for more info on this.

Take into account that patches in package/foo/ should be named
'foo-0001-description.patch'.

Don't forget a description and Signed-off-by line in both the patch
against buildroot as the containing patch against kobs-ng.

Thanks for your contribution,

Thomas


More information about the buildroot mailing list