Permalink
Browse files

scripts: sync with master

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information...
RobertCNelson committed Jan 16, 2013
1 parent 1d75bf5 commit 067137d06affd2ed347242da0a5c5d99a30bcc2f
Showing with 93 additions and 15 deletions.
  1. +0 −7 .gitignore
  2. +1 −7 README
  3. +19 −0 build_deb.sh
  4. +19 −0 build_kernel.sh
  5. +16 −1 tools/install_image.sh
  6. +19 −0 tools/rebuild.sh
  7. +19 −0 tools/rebuild_deb.sh
View
@@ -4,13 +4,6 @@ KERNEL
dl
deploy
ignore
-SDK
-SDK_BIN
-DSP_Install_libs.tar.gz
-GFX_*_libs.tar.gz
-GFX_Linux_SDK.tar.gz
-OMAP35x_Graphics_SDK_setuplinux_*.bin
-Graphics_SDK_setuplinux_*.bin
patches/patch-*.bz2
patches/current_defconfig
patches/previous_defconfig
View
8 README
@@ -2,12 +2,6 @@ This just a simple set of scripts to rebuild a known working kernel for ARM devi
Script Bugs: "bugs@rcn-ee.com"
-Supported Boards:
-mx53loco
-
-Weakly Support Boards:
-mx51evk
-
Dependencies: GCC ARM Cross ToolChain
Ubuntu (for target "armel", prior to 12.04):
@@ -53,4 +47,4 @@ Development/Hacking:
first run (to setup baseline tree): ./build_kernel.sh
then modify files under KERNEL directory
-then run (to rebuild with your changes): ./tools/rebuild.sh
+then run (to rebuild with your changes): ./tools/rebuild.sh
View
@@ -105,6 +105,24 @@ function make_bootlets {
cd ${DIR}/
}
+function make_firmware_pkg {
+ cd ${DIR}/KERNEL/
+
+ echo "-----------------------------"
+ echo "Building Firmware Archive"
+ echo "-----------------------------"
+
+ rm -rf ${DIR}/deploy/fir &> /dev/null || true
+ mkdir -p ${DIR}/deploy/fir
+ make ARCH=arm CROSS_COMPILE=${CC} firmware_install INSTALL_FW_PATH=${DIR}/deploy/fir
+ echo "-----------------------------"
+ echo "Building ${KERNEL_UTS}-firmware.tar.gz"
+ cd ${DIR}/deploy/fir
+ tar czf ../${KERNEL_UTS}-firmware.tar.gz *
+ echo "-----------------------------"
+ cd ${DIR}/
+}
+
function make_dtbs_pkg {
cd ${DIR}/KERNEL/
@@ -176,6 +194,7 @@ make_deb
if [ "${IMX_BOOTLETS}" ] ; then
make_bootlets
fi
+make_firmware_pkg
if [ "x${DTBS}" != "x" ] ; then
make_dtbs_pkg
fi
View
@@ -146,6 +146,24 @@ function make_modules_pkg {
cd ${DIR}/
}
+function make_firmware_pkg {
+ cd ${DIR}/KERNEL/
+
+ echo "-----------------------------"
+ echo "Building Firmware Archive"
+ echo "-----------------------------"
+
+ rm -rf ${DIR}/deploy/fir &> /dev/null || true
+ mkdir -p ${DIR}/deploy/fir
+ make ARCH=arm CROSS_COMPILE=${CC} firmware_install INSTALL_FW_PATH=${DIR}/deploy/fir
+ echo "-----------------------------"
+ echo "Building ${KERNEL_UTS}-firmware.tar.gz"
+ cd ${DIR}/deploy/fir
+ tar czf ../${KERNEL_UTS}-firmware.tar.gz *
+ echo "-----------------------------"
+ cd ${DIR}/
+}
+
function make_dtbs_pkg {
cd ${DIR}/KERNEL/
@@ -239,6 +257,7 @@ if [ "${IMX_BOOTLETS}" ] ; then
make_bootlets
fi
make_modules_pkg
+make_firmware_pkg
if [ "x${DTBS}" != "x" ] ; then
make_dtbs_pkg
fi
View
@@ -51,6 +51,19 @@ mmc_write_modules () {
fi
sudo tar xf "${DIR}/deploy/${KERNEL_UTS}-modules.tar.gz" -C "${DIR}/deploy/disk"
+
+ echo "Installing ${KERNEL_UTS}-firmware.tar.gz to rootfs partition"
+ echo "-----------------------------"
+ sudo mkdir -p "${DIR}/deploy/disk/tmp/fir"
+ sudo tar xf "${DIR}/deploy/${KERNEL_UTS}-firmware.tar.gz" -C "${DIR}/deploy/disk/tmp/fir/"
+
+ if [ -d "${DIR}/deploy/disk/tmp/fir/lib/firmware/capes/" ] ; then
+ if [ ! -d "${DIR}/deploy/disk/lib/firmware/capes/" ] ; then
+ sudo mkdir -p "${DIR}/deploy/disk/lib/firmware/capes/"
+ fi
+
+ sudo cp -v "${DIR}"/deploy/disk/tmp/fir/capes/* "${DIR}/deploy/disk/lib/firmware/capes/"
+ fi
}
mmc_write_image () {
@@ -175,7 +188,9 @@ mmc_write_imx_bootlets () {
echo "Installing ${KERNEL_UTS}.sd_mmc_bootstream.raw to boot partition"
echo "-----------------------------"
- sudo dd if="${DIR}/deploy/${KERNEL_UTS}.sd_mmc_bootstream.raw" of=${MMC}${PARTITION_PREFIX}${BOOT_PARITION}
+ if [ -f "${DIR}/deploy/${KERNEL_UTS}.sd_mmc_bootstream.raw" ] ; then
+ sudo dd if="${DIR}/deploy/${KERNEL_UTS}.sd_mmc_bootstream.raw" of=${MMC}${PARTITION_PREFIX}${BOOT_PARITION}
+ fi
sync
sync
mmc_find_rootfs
View
@@ -146,6 +146,24 @@ function make_modules_pkg {
cd ${DIR}/
}
+function make_firmware_pkg {
+ cd ${DIR}/KERNEL/
+
+ echo "-----------------------------"
+ echo "Building Firmware Archive"
+ echo "-----------------------------"
+
+ rm -rf ${DIR}/deploy/fir &> /dev/null || true
+ mkdir -p ${DIR}/deploy/fir
+ make ARCH=arm CROSS_COMPILE=${CC} firmware_install INSTALL_FW_PATH=${DIR}/deploy/fir
+ echo "-----------------------------"
+ echo "Building ${KERNEL_UTS}-firmware.tar.gz"
+ cd ${DIR}/deploy/fir
+ tar czf ../${KERNEL_UTS}-firmware.tar.gz *
+ echo "-----------------------------"
+ cd ${DIR}/
+}
+
function make_dtbs_pkg {
cd ${DIR}/KERNEL/
@@ -239,6 +257,7 @@ if [ "${IMX_BOOTLETS}" ] ; then
make_bootlets
fi
make_modules_pkg
+make_firmware_pkg
if [ "x${DTBS}" != "x" ] ; then
make_dtbs_pkg
fi
View
@@ -105,6 +105,24 @@ function make_bootlets {
cd ${DIR}/
}
+function make_firmware_pkg {
+ cd ${DIR}/KERNEL/
+
+ echo "-----------------------------"
+ echo "Building Firmware Archive"
+ echo "-----------------------------"
+
+ rm -rf ${DIR}/deploy/fir &> /dev/null || true
+ mkdir -p ${DIR}/deploy/fir
+ make ARCH=arm CROSS_COMPILE=${CC} firmware_install INSTALL_FW_PATH=${DIR}/deploy/fir
+ echo "-----------------------------"
+ echo "Building ${KERNEL_UTS}-firmware.tar.gz"
+ cd ${DIR}/deploy/fir
+ tar czf ../${KERNEL_UTS}-firmware.tar.gz *
+ echo "-----------------------------"
+ cd ${DIR}/
+}
+
function make_dtbs_pkg {
cd ${DIR}/KERNEL/
@@ -176,6 +194,7 @@ make_deb
if [ "${IMX_BOOTLETS}" ] ; then
make_bootlets
fi
+make_firmware_pkg
if [ "x${DTBS}" != "x" ] ; then
make_dtbs_pkg
fi

0 comments on commit 067137d

Please sign in to comment.