[Buildroot] [RFC 1/3] a10disp: new package
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Tue Jul 16 08:21:13 UTC 2013
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
More information about the buildroot
mailing list