From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] Microblaze: build kernel with device tree
Date: Sun, 18 Mar 2012 19:28:09 +0100 [thread overview]
Message-ID: <201203181928.09249.arnout@mind.be> (raw)
In-Reply-To: <1331978750-11724-1-git-send-email-sho@relinux.de>
Many of my comments below were already made by ThomasP as well. If
you cannot incorporate them for any reason, it is courteous to say why.
But probably you just hadn't noticed that he had comments on your patch.
On Saturday 17 March 2012 11:05:49 Stephan Hoffmann wrote:
[snip]
> +ifeq ($(KERNEL_ARCH),microblaze)
> +# on microblaze, we always want mkimage
> +LINUX_DEPENDENCIES+=host-uboot-tools
Spaces around +=
And, quoting Thomas:
Can't you create a new kernel image type (along
BR2_LINUX_KERNEL_UIMAGE, BR2_LINUX_KERNEL_BZIMAGE,
BR2_LINUX_KERNEL_ZIMAGE, etc.) which would add this dependency?
Actually you probably have to do something like that, because with
this patch the simpleImage.xxx doesn't get copied into the images
directory, right?
> +
> +define LINUX_COPY_DTS
> + if test -f "$(BR2_LINUX_KERNEL_DTS_FILE)" ; then \
The filename should be qstripped. So
if test -f "$(call qstrip,$(BR2_LINUX_KERNEL_DTS_FILE))"; then \
It looks a bit crazy to strip the quotes and then add them again, but
that helps to support situations where the variable is assigned from
the command line.
Also, I prefer to use single quotes instead of double quotes, so nothing
gets expanded by the shell.
> + cp $(BR2_LINUX_KERNEL_DTS_FILE) $(@D)/arch/microblaze/boot/dts ; \
Use KERNEL_ARCH_PATH instead of $(@D)/arch/microblaze, so it works on
other architectures as well.
> + else \
> + echo "Cannot copy dts file!" ; \
This message will get lost in the long make output. Either there
should be a check at the make level (i.e. using $(error), but that's
tricky to get right), or the else branch should end with an 'exit 1'.
Or skip the check entirely, the kernel build will error out on it
anyway.
> + fi
> +endef
> +endif
>
> ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y)
> KERNEL_SOURCE_CONFIG = $(KERNEL_ARCH_PATH)/configs/$(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig
> @@ -131,6 +143,8 @@ define LINUX_CONFIGURE_CMDS
> $(if $(BR2_ARM_EABI),
> $(call KCONFIG_ENABLE_OPT,CONFIG_AEABI,$(@D)/.config),
> $(call KCONFIG_DISABLE_OPT,CONFIG_AEABI,$(@D)/.config))
> + $(if $(BR2_microblaze),
> + $(call LINUX_COPY_DTS))
The if is not needed, the LINUX_COPY_DTS is already defined
conditionally.
> # As the kernel gets compiled before root filesystems are
> # built, we create a fake cpio file. It'll be
> # replaced later by the real cpio archive, and the kernel will be
> @@ -215,6 +229,8 @@ $(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_target_installed $(LI
> $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_IMAGE_NAME)
> # Copy the kernel image to its final destination
> cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR)
> + # If there is a .ub file copy it to the final destination
> + test -f $(LINUX_IMAGE_PATH).ub && cp $(LINUX_IMAGE_PATH).ub $(BINARIES_DIR)
I'm sorry, but that comment doesn't help me. I see that the .ub file is
copied if it exists, but what is this .ub file?
Regards,
Arnout
> $(Q)touch $@
>
> # The initramfs building code must make sure this target gets called
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2012-03-18 18:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-17 10:05 [Buildroot] [PATCH 1/2] Microblaze: build kernel with device tree Stephan Hoffmann
2012-03-17 10:05 ` [Buildroot] [PATCH 2/2] Microblaze: added defconfig for Avnet S6LX9 Microboard Stephan Hoffmann
2012-03-17 12:22 ` [Buildroot] [PATCH] " Alvaro G. M
2012-03-17 12:13 ` [Buildroot] [PATCH] Microblaze: build kernel with device tree Alvaro G. M
2012-03-18 18:30 ` Arnout Vandecappelle
2012-03-18 18:58 ` Peter Korsgaard
2012-03-18 18:28 ` Arnout Vandecappelle [this message]
2012-03-18 20:15 ` [Buildroot] [PATCH 1/2] " Stephan Hoffmann
-- strict thread matches above, loose matches on Subject: below --
2012-03-17 9:40 [Buildroot] [PATCH 3/3] Microblaze: added external toolchain from Xilinx Stephan Hoffmann
2012-03-17 9:46 ` [Buildroot] [PATCH 1/2] Microblaze: build kernel with device tree Stephan Hoffmann
2012-03-18 21:55 ` 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=201203181928.09249.arnout@mind.be \
--to=arnout@mind.be \
--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