Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/rpi-userland: don't isntall file in random location
Date: Wed, 8 Mar 2017 23:02:11 +0100	[thread overview]
Message-ID: <20170308230211.67576e85@gmx.net> (raw)
In-Reply-To: <1488921388-9691-1-git-send-email-yann.morin.1998@free.fr>

Hello Yann,

On Tue,  7 Mar 2017 22:16:28 +0100, "Yann E. MORIN" <yann.morin.1998@free.fr> wrote:

> Currently, rpi-userland installs files in $(@D)/../../bin/ which is
> entirely stupid, especially in cross-compilation.
> 
> Get rid of the dubious, broken, custom install command.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
>  ...toverlay-don-t-install-script-in-random-l.patch | 45 ++++++++++++++++++++++
>  1 file changed, 45 insertions(+)
>  create mode 100644 package/rpi-userland/0006-host-apps-dtoverlay-don-t-install-script-in-random-l.patch
> 
> diff --git a/package/rpi-userland/0006-host-apps-dtoverlay-don-t-install-script-in-random-l.patch b/package/rpi-userland/0006-host-apps-dtoverlay-don-t-install-script-in-random-l.patch
> new file mode 100644
> index 0000000..2900eb7
> --- /dev/null
> +++ b/package/rpi-userland/0006-host-apps-dtoverlay-don-t-install-script-in-random-l.patch
> @@ -0,0 +1,45 @@
> +From a5a4e361c8116ca9228a896f672102c02be56bb7 Mon Sep 17 00:00:00 2001
> +From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> +Date: Tue, 7 Mar 2017 22:01:39 +0100
> +Subject: [PATCH] host-apps/dtoverlay: don't install script in random location
> +
> +Currently, we add a custom command that installs the dtoverlay pre/post
> +scripts in ${CMAKE_BINARY_DIR}/../../bin
> +
> +However:
> +
> +  - this points outside of the package directory.; it even points two
> +    directories higher;
> +
> +  - when doing cross-compilation, this is definitely not the place where
> +    the /bin directory really is;
> +
> +  - the scripts are already properly installed without this code.
> +
> +Remove that code, it serves no purpose and breaks for cross-compilation.
> +
> +Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> +---
> + host_applications/linux/apps/dtoverlay/CMakeLists.txt | 8 --------
> + 1 file changed, 8 deletions(-)
> +
> +diff --git a/host_applications/linux/apps/dtoverlay/CMakeLists.txt b/host_applications/linux/apps/dtoverlay/CMakeLists.txt
> +index 9009200..dd48d83 100755
> +--- a/host_applications/linux/apps/dtoverlay/CMakeLists.txt
> ++++ b/host_applications/linux/apps/dtoverlay/CMakeLists.txt
> +@@ -22,12 +22,4 @@ add_custom_command(TARGET dtoverlay POST_BUILD COMMAND ln;-sf;dtoverlay;dtparam)
> + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/dtparam DESTINATION bin)
> + 
> + set(DTOVERLAY_SCRIPTS dtoverlay-pre dtoverlay-post)
> +-foreach(_script ${DTOVERLAY_SCRIPTS})
> +-   add_custom_command(
> +-     TARGET dtoverlay
> +-     COMMAND ${CMAKE_COMMAND}
> +-     -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${_script}
> +-     ${CMAKE_BINARY_DIR}/../../bin/${_script}
> +-   )
> +-endforeach()
> + install(PROGRAMS ${DTOVERLAY_SCRIPTS} DESTINATION bin)
> +-- 
> +2.7.4
> +

No more spurious bin directory created...
 
Tested-by: Peter Seiderer <ps.report@gmx.net>

Regards,
Peter

  reply	other threads:[~2017-03-08 22:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-07 21:16 [Buildroot] [PATCH] package/rpi-userland: don't isntall file in random location Yann E. MORIN
2017-03-08 22:02 ` Peter Seiderer [this message]
2017-03-10 21:46 ` Thomas Petazzoni
2017-03-10 21:57   ` Yann E. MORIN
2017-03-13 23:08 ` Peter Korsgaard

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=20170308230211.67576e85@gmx.net \
    --to=ps.report@gmx.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox