All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC 1/3] a10disp: new package
Date: Tue, 16 Jul 2013 10:21:13 +0200	[thread overview]
Message-ID: <20130716102113.49645177@skate> (raw)
In-Reply-To: <1373778632-16531-2-git-send-email-spenser@gillilanding.com>

Dear Spenser Gilliland,

Great to see the beginning of the work on Allwinner devices!

On Sun, 14 Jul 2013 00:10:30 -0500, Spenser Gilliland wrote:
> diff --git a/package/a10disp/Config.in b/package/a10disp/Config.in
> new file mode 100644
> index 0000000..60ba44c
> --- /dev/null
> +++ b/package/a10disp/Config.in
> @@ -0,0 +1,11 @@
> +config BR2_PACKAGE_A10DISP
> +	bool "a10disp"
> +	depends on BR2_LINUX_KERNEL && BR2_arm
> +	help
> +	  Program to change the display mode of Allwinner devices running
> +	  linux-sunxi.

I'd make this a little bit more explicit:

	  Program to change the display mode on Allwinner ARM SOCs
	  running the linux-sunxi kernel (and not the mainline kernel).

> +
> +	  http://github.com/hglm/a10disp
> +
> +comment "a10disp requires the linux kernel"
> +	depends on !(BR2_LINUX_KERNEL) && BR2_arm

Parenthesis not needed.

> diff --git a/package/a10disp/a10disp.mk b/package/a10disp/a10disp.mk
> new file mode 100644
> index 0000000..bac515a
> --- /dev/null
> +++ b/package/a10disp/a10disp.mk
> @@ -0,0 +1,21 @@
> +################################################################################
> +#
> +# a10disp
> +#
> +################################################################################
> +
> +A10DISP_VERSION = a899cc6dcf
> +A10DISP_SITE = http://github.com/hglm/a10disp/tarball/$(A10DISP_VERSION)
> +
> +A10DISP_DEPENDENCIES = linux
> +
> +define A10DISP_BUILD_CMDS
> +   cp -f $(LINUX_DIR)/include/video/sunxi_disp_ioctl.h $(@D)/
> +   cd $(@D) && $(TARGET_CC) -Wall -O a10disp.c -o a10disp

Tabs preferred for indentation here. Also, hardcoding the -Wall and -O
flags is not really great. Instead, can we do something like:

	cp -f $(LINUX_DIR)/include/video/sunxi_disp_ioctl.h $(@D)/
	$(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/a10disp $(@D)/a10disp.c

> +endef
> +
> +define A10DISP_INSTALL_TARGET_CMDS
> +	$(INSTALL) -m 0755 $(@D)/a10disp $(TARGET_DIR)/usr/bin/

	$(INSTALL) -D -m 0755 $(@D)/a10disp $(TARGET_DIR)/usr/bin/a10disp

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2013-07-16  8:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-14  5:10 [Buildroot] [RFC 0/3] ARM Mali Graphics Drivers Spenser Gilliland
2013-07-14  5:10 ` [Buildroot] [RFC 1/3] a10disp: new package Spenser Gilliland
2013-07-16  8:21   ` Thomas Petazzoni [this message]
2013-07-16 15:46     ` Spenser Gilliland
2013-07-14  5:10 ` [Buildroot] [RFC 2/3] sunxi-mali: " Spenser Gilliland
2013-07-16  8:55   ` Thomas Petazzoni
2013-07-16 16:46     ` Spenser Gilliland
2013-07-16 19:08       ` Thomas Petazzoni
2013-07-18  7:21         ` Spenser Gilliland
2013-07-18  8:16           ` Thomas Petazzoni
2013-07-16 20:14   ` Yann E. MORIN
2013-07-18  6:12     ` Spenser Gilliland
2013-07-18  7:16       ` Thomas Petazzoni
2013-07-18 16:29       ` Yann E. MORIN
2013-07-14  5:10 ` [Buildroot] [RFC 3/3] opengl: add sunxi-mali as possible egl/gles provider Spenser Gilliland
2013-07-16  8:55   ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130716102113.49645177@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.