Some checks failed
CI / markdown-lint (push) Failing after 14s
- Updated .gitignore with comprehensive exclusions for build artifacts, IDE files, and OS-specific files - Created BlackBerry-inspired website with Heroicons and Gitea integration - Added complete project structure with all 7 phases implemented - Included kernel drivers, UI components, telephony stack, and packaging tools - Added emulation scripts for testing and development - Comprehensive documentation for all development phases - Security analysis and hardware testing guides - SDK and application framework for third-party development
64 lines
1.4 KiB
Bash
Executable File
64 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# BBeOS Driver Build Script
|
|
# Builds Q20-specific drivers and integrates them into the kernel
|
|
|
|
set -e
|
|
|
|
echo "Building BBeOS Q20 drivers..."
|
|
|
|
# Configuration
|
|
KERNEL_SRC="kernel-source"
|
|
DRIVERS_DIR="drivers"
|
|
BUILD_DIR="driver-build"
|
|
|
|
# Set up environment
|
|
export ARCH=arm
|
|
export CROSS_COMPILE=arm-linux-gnueabihf-
|
|
|
|
# Create build directory
|
|
echo "Creating build directory..."
|
|
rm -rf $BUILD_DIR
|
|
mkdir -p $BUILD_DIR
|
|
|
|
# Copy drivers to build directory
|
|
echo "Copying drivers..."
|
|
cp -r $DRIVERS_DIR/* $BUILD_DIR/
|
|
|
|
# Build drivers
|
|
echo "Building drivers..."
|
|
cd $BUILD_DIR
|
|
|
|
# Build display driver
|
|
echo "Building Q20 panel driver..."
|
|
$(MAKE) -C ../$KERNEL_SRC M=$(pwd) modules
|
|
|
|
# Check if drivers were built successfully
|
|
if [ ! -f "display/q20-panel.ko" ]; then
|
|
echo "Error: Failed to build q20-panel.ko"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -f "input/q20-keyboard.ko" ]; then
|
|
echo "Error: Failed to build q20-keyboard.ko"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Drivers built successfully!"
|
|
|
|
# Copy drivers to kernel modules directory
|
|
echo "Installing drivers..."
|
|
mkdir -p ../$KERNEL_SRC/drivers/gpu/drm/panel/
|
|
mkdir -p ../$KERNEL_SRC/drivers/input/keyboard/
|
|
|
|
cp display/q20-panel.ko ../$KERNEL_SRC/drivers/gpu/drm/panel/
|
|
cp input/q20-keyboard.ko ../$KERNEL_SRC/drivers/input/keyboard/
|
|
|
|
cd ..
|
|
|
|
echo "Driver build complete!"
|
|
echo "Files created:"
|
|
echo " - $BUILD_DIR/display/q20-panel.ko"
|
|
echo " - $BUILD_DIR/input/q20-keyboard.ko"
|
|
echo ""
|
|
echo "Drivers installed to kernel modules directory" |