pi Domo is now compiling

This commit is contained in:
2016-11-18 22:54:49 +01:00
parent eb0cb9b037
commit 6c92722606
20 changed files with 672 additions and 39 deletions

View File

@@ -1,5 +1,5 @@
#
# Main rules for Mozart3 targets.
# Main rules for raspberry board targets.
#
#

View File

@@ -13,13 +13,13 @@ function error {
set -e
trap error ERR
echo "==> Mozart3 post-build:"
echo "==> Raspberry post-build:"
echo "AW_STAGING: ${AW_STAGING}"
echo "AW_PROJECT: " ${AW_PROJECT}
echo "BR_STAGING: ${BR_STAGING}"
echo "BR_PROJECT: " ${BR_PROJECT}
# Generate uboot scripts
for cmd_file in `ls ${AW_PROJECT}/uboot/*.cmd`
for cmd_file in `ls ${BR_PROJECT}/uboot/*.cmd`
do
echo "uboot script: $cmd_file"
# Get file name without extention.
@@ -30,8 +30,8 @@ done
# Copy the overlay of the target.
if [ -d ${PROJECT}/ovl ]; then
mkdir -p ${AW_STAGING}/buildroot/target/usr/local/
cp -a ${AW_PROJECT}/ovl/* ${AW_STAGING}/buildroot/target/
mkdir -p ${BR_STAGING}/buildroot/target/usr/local/
cp -a ${BR_PROJECT}/ovl/* ${BR_STAGING}/buildroot/target/
fi
# Finaly apply post build script of the target if the script exist.

View File

@@ -12,7 +12,7 @@ function error {
set -e
trap error ERR
echo "==> Mozart3 post-image:"
echo "==> Domo post-image:"
if [ -e ${PROJECT}/configs/genimage.config ]; then
echo "We will generate sdcard image."

View File

@@ -1,4 +1,4 @@
menu "Awox Audio Software"
source "$BR2_EXTERNAL/Domo.in"
endmenu
menu "Domo"
endmenu # Domo

View File

@@ -1,30 +1,30 @@
BR2_EXTERNAL ?= $(AW_PROJECT)/../../bsp/buildroot_external/
BR2_EXTERNAL ?= $(BR_PROJECT)/../../bsp/buildroot_external/
BR_ENV = BR2_EXTERNAL=$(BR2_EXTERNAL) O=$(AW_STAGING)/buildroot/ WORKSPACE_DIR=$(AW_STAGING) BUILDS_ROOT=$(AW_LOCAL_BUILDS_ROOT) BOARD=$(AW_BOARD) PROJECT=$(AW_PROJECT)
BR_ENV = BR2_EXTERNAL=$(BR2_EXTERNAL) O=$(BR_STAGING)/buildroot/ WORKSPACE_DIR=$(BR_STAGING) BUILDS_ROOT=$(BR_LOCAL_BUILDS_ROOT) BOARD=$(BR_BOARD) PROJECT=$(BR_PROJECT)
buildroot.menuconfig: buildroot.config
$(MAKE) $(BR_ENV) -C $(AW_PROJECT)/../../bsp/buildroot/ menuconfig
cmp -s $(AW_STAGING)/buildroot/.config $(AW_PROJECT)/configs/buildroot.config; \
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ menuconfig
cmp -s $(BR_STAGING)/buildroot/.config $(BR_PROJECT)/configs/buildroot.config; \
if test $$? -ne 0; then echo "Config Files has changed......"; \
cp $(AW_STAGING)/buildroot/.config $(AW_PROJECT)/configs/buildroot.config; \
cp $(BR_STAGING)/buildroot/.config $(BR_PROJECT)/configs/buildroot.config; \
fi
buildroot: buildroot.config
$(MAKE) $(BR_ENV) -C $(AW_PROJECT)/../../bsp/buildroot/
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/
buildroot.shell: buildroot.config
$(eval export $(BR_ENV))
cd $(AW_STAGING)/buildroot/; $(BR_ENV) bash
cd $(BR_STAGING)/buildroot/; $(BR_ENV) bash
buildroot.config:
@mkdir -p $(AW_STAGING)/buildroot/
ifeq ("$(wildcard $(AW_STAGING)/buildroot/.config)","")
@cp $(AW_PROJECT)/configs/buildroot.config $(AW_STAGING)/buildroot/.config
@mkdir -p $(BR_STAGING)/buildroot/
ifeq ("$(wildcard $(BR_STAGING)/buildroot/.config)","")
@cp $(BR_PROJECT)/configs/buildroot.config $(BR_STAGING)/buildroot/.config
else
cmp -s $(AW_PROJECT)/configs/buildroot.config $(AW_STAGING)/buildroot/.config; \
cmp -s $(BR_PROJECT)/configs/buildroot.config $(BR_STAGING)/buildroot/.config; \
if test $$? -ne 0; then echo "Config Files has changed......"; \
cp $(AW_PROJECT)/configs/buildroot.config $(AW_STAGING)/buildroot/.config; \
cp $(BR_PROJECT)/configs/buildroot.config $(BR_STAGING)/buildroot/.config; \
fi
endif

View File

@@ -1,9 +1,9 @@
msg:
@echo "Building $(AW_PROJECT_NAME) Firmware."
@echo "Building $(BR_PROJECT_NAME) Firmware."
clean:
rm -rf $(AW_STAGING)
rm -rf $(BR_STAGING)
export DEBUG ?= 0
@@ -19,5 +19,5 @@ BUILD_TYPE := Release
endif
export BUILD_TYPE
export AW_LOCAL_BUILDS_ROOT ?= $(AW_PROJECT)/../../_builds
export AW_STAGING ?= $(AW_LOCAL_BUILDS_ROOT)/$(AW_PROJECT_NAME)$(BUILD_DIR)/
export BR_LOCAL_BUILDS_ROOT ?= $(BR_PROJECT)/../../_builds
export BR_STAGING ?= $(BR_LOCAL_BUILDS_ROOT)/$(BR_PROJECT_NAME)$(BUILD_DIR)/