[Armadeus-commitlog] armadeus branch, master, updated. armadeus-5.2-388-g017f35c
Brought to you by:
sszy
|
From: jorasse <jo...@us...> - 2013-08-16 13:28:38
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 017f35c0cb7a7e566da716b52cf7d15408cd97ed (commit)
from b8d03384260a3d9e7ef66af2cc6ea84cdcb3c638 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 017f35c0cb7a7e566da716b52cf7d15408cd97ed
Author: Eric Jarrige <eri...@ar...>
Date: Fri Aug 16 15:38:15 2013 +0200
[BUILDROOT] add linux hooks to support linux kernel and DTB bin files for the Armadeus boards
-----------------------------------------------------------------------
Summary of changes:
buildroot/target/device/armadeus/Makefile.in | 47 +++++++++++++++++++++++++-
1 files changed, 46 insertions(+), 1 deletions(-)
diff --git a/buildroot/target/device/armadeus/Makefile.in b/buildroot/target/device/armadeus/Makefile.in
index a19c057..fe1b079 100644
--- a/buildroot/target/device/armadeus/Makefile.in
+++ b/buildroot/target/device/armadeus/Makefile.in
@@ -5,7 +5,8 @@ BOARD_NAME:=$(call qstrip,$(BR2_BOARD_NAME))
BOARD_PATH:=$(call qstrip,$(BR2_BOARD_PATH))
CPU_NAME:=$(call qstrip,$(BR2_CPU_NAME))
-ARMADEUS_LINUX_IMAGE_NAME:=$(BOARD_NAME)-linux.bin
+ARMADEUS_LINUX_IMAGE_NAME:=$(addsuffix -linux.bin,$(BOARD_NAME))
+ARMADEUS_DTB_IMAGE_NAME:=$(addsuffix .dtb,$(BOARD_NAME))
# for old BR:
LINUX26_KERNEL_NAME:=$(BOARD_NAME)-linux.bin
@@ -50,4 +51,48 @@ endef
UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_POST_INSTALL_IMAGES_ACTION
+define LINUX_POST_PATCH_ACTION
+ for p in $(LINUX_PATCHES) ; do \
+ if test -d $$p ; then \
+ support/scripts/apply-patches.sh $(@D) $$p \*.patch ; \
+ fi \
+ done
+endef
+
+LINUX_POST_PATCH_HOOKS += LINUX_POST_PATCH_ACTION
+
+define LINUX_PRE_CONFIGURE_ACTION
+ ln -sf $(ARMADEUS_TOPDIR)/target/linux/modules $(@D)/drivers/armadeus
+ $(SED) "s,^ARCH.*,ARCH=$(KERNEL_ARCH),g;" $(@D)/Makefile
+ $(SED) "s,^CROSS_COMPILE.*,CROSS_COMPILE=$(KERNEL_CROSS),g;" $(@D)/Makefile
+endef
+
+LINUX_PRE_CONFIGURE_HOOKS += LINUX_PRE_CONFIGURE_ACTION
+
+define LINUX_POST_INSTALL_IMAGES_ACTION
+ @if [ -e "$(BINARIES_DIR)/$(LINUX_IMAGE_NAME)" ]; then \
+ mv $(BINARIES_DIR)/$(LINUX_IMAGE_NAME) \
+ $(BINARIES_DIR)/$(ARMADEUS_LINUX_IMAGE_NAME) ; \
+ fi
+ @if [ -e "$(BINARIES_DIR)/$(KERNEL_DTBS)" ]; then \
+ mv $(BINARIES_DIR)/$(KERNEL_DTBS) \
+ $(BINARIES_DIR)/$(ARMADEUS_DTB_IMAGE_NAME) ; \
+ fi
+endef
+
+LINUX_POST_INSTALL_IMAGES_HOOKS += LINUX_POST_INSTALL_IMAGES_ACTION
+
+define LINUX_POST_INSTALL_TARGET_ACTION
+ @if [ -e "$(TARGET_DIR)/boot/$(LINUX_IMAGE_NAME)" ]; then \
+ mv $(TARGET_DIR)/boot/$(LINUX_IMAGE_NAME) \
+ $(TARGET_DIR)/boot/$(ARMADEUS_LINUX_IMAGE_NAME) ; \
+ fi
+ @if [ -e "$(TARGET_DIR)/boot/$(KERNEL_DTBS)" ]; then \
+ mv $(TARGET_DIR)/boot/$(KERNEL_DTBS) \
+ $(TARGET_DIR)/boot/$(ARMADEUS_DTB_IMAGE_NAME) ; \
+ fi
+endef
+
+LINUX_POST_INSTALL_TARGET_HOOKS += LINUX_POST_INSTALL_TARGET_ACTION
+
endif
hooks/post-receive
--
armadeus
|