- New overlay bundle which provides the MLL sources. - The build process has been enhanced. --- Sources are provided as part of the new overlay bundle. --- The MLL scripts have been refactored to handle the above change. --- The overlay dependency file has been renamed. NOTE: at this point some overlay bundles may be broken due to the numerous changes that haven't been fully tested.
34 lines
796 B
Bash
Executable File
34 lines
796 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
. ../../common.sh
|
|
|
|
mkdir -p "$WORK_DIR/overlay/$BUNDLE_NAME"
|
|
cd $WORK_DIR/overlay/$BUNDLE_NAME
|
|
|
|
rm -rf $DEST_DIR
|
|
|
|
mkdir -p $DEST_DIR/usr/src
|
|
|
|
# Copy all source files and folders to 'work/src'.
|
|
cp $MAIN_SRC_DIR/*.sh $DEST_DIR/usr/src
|
|
cp $MAIN_SRC_DIR/.config $DEST_DIR/usr/src
|
|
cp $MAIN_SRC_DIR/README $DEST_DIR/usr/src
|
|
cp $MAIN_SRC_DIR/*.txt $DEST_DIR/usr/src
|
|
cp -r $MAIN_SRC_DIR/minimal_rootfs $DEST_DIR/usr/src
|
|
cp -r $MAIN_SRC_DIR/minimal_overlay $DEST_DIR/usr/src
|
|
cp -r $MAIN_SRC_DIR/minimal_config $DEST_DIR/usr/src
|
|
|
|
cd $DEST_DIR/usr/src
|
|
|
|
# Delete the '.gitignore' files which we use in order to keep track of otherwise
|
|
# empty folders.
|
|
find * -type f -name '.gitignore' -exec rm {} +
|
|
|
|
cp -r $DEST_DIR/* $OVERLAY_ROOTFS
|
|
|
|
echo "$BUNDLE_NAME has been installed."
|
|
|
|
cd $SRC_DIR
|