Skip to content

Releases: TbusOS/openwrt-tools

v8.1.0 - Enhanced Configuration Integration Version

11 Aug 17:07

Choose a tag to compare

🚀 OpenWrt Kernel Patch Management Tool v8.1.0

✨ 新功能 / New Features

  • 🔧 智能配置集成: 主脚本智能读取kernel_snapshot_tool全局配置文件 / Smart configuration integration: Main script intelligently reads kernel_snapshot_tool global config files
  • 📋 增强错误处理: 新增find_kernel_source_enhanced函数,提供详细错误诊断 / Enhanced error handling: Added find_kernel_source_enhanced function with detailed diagnostics
  • 🎯 配置文件优先: 标准方法失败时自动使用全局配置文件 / Configuration file priority: Auto fallback to global config when standard methods fail
  • 💡 智能提示: 改进错误信息包含具体解决方案建议 / Smart hints: Improved error messages with specific solution suggestions

🔧 技术改进 / Technical Improvements

  • 新增find_kernel_source_enhanced()函数,支持配置文件读取 / Added find_kernel_source_enhanced() function with config file support
  • 优化所有quilt操作函数的错误处理机制 / Optimized error handling for all quilt operation functions
  • 改进配置文件路径检测逻辑 / Improved config file path detection logic
  • 增强错误诊断和用户提示信息 / Enhanced error diagnostics and user prompts

📚 文档更新 / Documentation Updates

  • 更新README.md和README-en.md至v8.1.0 / Updated README.md and README-en.md to v8.1.0
  • 新增版本对比表格和功能说明 / Added version comparison table and feature descriptions
  • 完善使用指南和配置说明 / Improved usage guide and configuration instructions

📊 版本统计 / Version Statistics

  • 代码行数:1320行 (+118行 vs v8.0.0) / Code lines: 1320 lines (+118 lines vs v8.0.0)
  • 完全向下兼容v8.0.0所有功能 / Full backward compatibility with all v8.0.0 features
  • 支持macOS和Linux跨平台 / Cross-platform support for macOS and Linux

🌟 核心优势 / Core Advantages

  1. 🔧 智能配置: 自动读取kernel_snapshot_tool配置文件,无需手动指定路径
  2. 📋 增强诊断: 详细的错误诊断信息和解决方案建议
  3. 💡 智能提示: 改进的用户体验和错误处理
  4. 🎯 配置优先: 优雅的降级机制,提高工具可用性
  5. 🔄 完全兼容: 保持所有v8.0功能,无破坏性变更

Download: 下载源代码或查看完整变更历史
Documentation: 查看 使用指南 开始使用

🚀 OpenWrt 补丁管理工具 v8.0.0 - Git风格快照系统重大版本

10 Aug 11:17

Choose a tag to compare

🚀 OpenWrt 补丁管理工具 v8.0.0 重大版本发布

🎉 重大突破 - Git风格快照系统

这是一个里程碑式的版本发布,引入了全新的 kernel_snapshot_tool v1.0.0 独立工具,为内核开发带来了 Git 级别的文件变更跟踪能力。

✨ 核心新特性

🚀 kernel_snapshot_tool v1.0.0 首次发布

  • ⚡ 极速性能: 87,000个文件仅需2秒处理,性能是传统方法的100倍以上
  • 🛡️ 零文件丢失: 采用单线程遍历+多线程处理的Git风格设计,绝对可靠
  • 🎯 Git风格界面: 支持 createstatusclean 等熟悉的Git命令
  • ⚙️ 全局配置文件: 支持 .kernel_snapshot.conf 配置文件,实现零配置使用

🔧 技术亮点

  • 🎯 智能索引缓存: 后续状态检查速度提升10倍以上,支持增量检测
  • 📊 实时进度条: 动态进度显示和详细处理统计信息
  • 🧬 多哈希支持: 默认SHA256,可选Git兼容SHA1
  • 🚫 智能文件排除: 灵活的忽略模式,专为内核开发优化

📚 完整中文文档体系

新增了完整的中文文档支持:

🎯 使用示例

Git风格工作流 (推荐)

# 创建全局配置文件
cat > .kernel_snapshot.conf << 'EOF'
default_workspace_dir=/path/to/linux-kernel
default_project_name=linux-dev
ignore_patterns=.git,*.o,*.tmp,*.log,build/
EOF

# Git风格命令
cd tools/kernel_snapshot_tool
./kernel_snapshot create                    # 创建基线快照
# ... 修改代码 ...
./kernel_snapshot status                    # 查看变更 (A/M/D格式)
./kernel_snapshot clean                     # 清理快照数据

性能对比

工具 87,000个文件处理时间 相对性能 准确率
kernel_snapshot_tool 2.1秒 基准 100%
传统Shell脚本 ~3.5小时 慢6,000倍 100%
Git add 36.6秒 慢17倍 100%

📝 文档更新

  • ✅ 更新主项目README,突出显示v8.0.0重大升级
  • ✅ 更新文档索引,加入新的中文文档分类
  • ✅ 更新所有工具文档,展示Git风格用法
  • ✅ 详细的CHANGELOG记录所有新特性

🔄 版本兼容性

  • 向下兼容: 保持所有 v7.0 智能分析和 Quilt 管理特性
  • 新特性: Git风格快照系统作为独立工具,不影响现有工作流
  • 文档支持: 中英文双语文档,完整的迁移指南

📦 安装方式

# 克隆仓库
git clone https://github.com/TbusOS/openwrt-tools.git
cd openwrt-tools/tools/kernel_snapshot_tool

# 编译工具
make

# 快速验证
./kernel_snapshot --help

🎉 特别感谢

感谢OpenWrt社区和Linux内核开发者的贡献,本工具的设计灵感来源于Git的高性能设计思想。


🌟 如果这个工具对您有帮助,请给个Star支持!

📖 详细文档: 完整文档索引


🌍 English Version

🚀 OpenWrt Patch Management Tool v8.0.0 Major Release

🎉 Major Breakthrough - Git-Style Snapshot System

This is a milestone release introducing the brand new kernel_snapshot_tool v1.0.0 standalone tool, bringing Git-level file change tracking capabilities to kernel development.

✨ Core New Features

🚀 kernel_snapshot_tool v1.0.0 First Release

  • ⚡ Extreme Performance: Processes 87,000 files in just 2 seconds, 100x faster than traditional methods
  • 🛡️ Zero File Loss: Git-style design with single-thread traversal + multi-thread processing, absolutely reliable
  • 🎯 Git-Style Interface: Supports familiar Git commands like create, status, clean
  • ⚙️ Global Configuration: Supports .kernel_snapshot.conf configuration file for zero-config usage

🔧 Technical Highlights

  • 🎯 Smart Index Caching: 10x faster subsequent checks with incremental detection
  • 📊 Real-time Progress Bar: Dynamic progress display and detailed processing statistics
  • 🧬 Multi-Hash Support: Default SHA256, optional Git-compatible SHA1
  • 🚫 Smart File Exclusion: Flexible ignore patterns optimized for kernel development

📚 Complete Chinese Documentation System

Added comprehensive Chinese documentation support:

🎯 Usage Examples

Git-Style Workflow (Recommended)

# Create global configuration file
cat > .kernel_snapshot.conf << 'EOF'
default_workspace_dir=/path/to/linux-kernel
default_project_name=linux-dev
ignore_patterns=.git,*.o,*.tmp,*.log,build/
EOF

# Git-style commands
cd tools/kernel_snapshot_tool
./kernel_snapshot create                    # Create baseline snapshot
# ... modify code ...
./kernel_snapshot status                    # Check changes (A/M/D format)
./kernel_snapshot clean                     # Clean snapshot data

📝 Documentation Updates

  • ✅ Updated main project README highlighting v8.0.0 major upgrade
  • ✅ Updated documentation index with new Chinese documentation categories
  • ✅ Updated all tool documentation showcasing Git-style usage
  • ✅ Detailed CHANGELOG recording all new features

🔄 Version Compatibility

  • Backward Compatible: Maintains all v7.0 intelligent analysis and Quilt management features
  • New Features: Git-style snapshot system as standalone tool, doesn't affect existing workflows
  • Documentation Support: Bilingual Chinese-English documentation with complete migration guides

📦 Installation

# Clone repository
git clone https://github.com/TbusOS/openwrt-tools.git
cd openwrt-tools/tools/kernel_snapshot_tool

# Compile tool
make

# Quick verification
./kernel_snapshot --help

🎉 Special Thanks

Thanks to the OpenWrt community and Linux kernel developers for their contributions. This tool's design is inspired by Git's high-performance design philosophy.


🌟 If this tool helps you, please give us a Star!

📖 Detailed Documentation: Complete Documentation Index

Release v5.7.0: Intelligent Analysis and Caching

06 Aug 16:25

Choose a tag to compare

This major feature update transforms the patch manager into a more
intelligent and robust tool, especially for handling CVE patches in
complex, non-Git (SVN) environments.

Key enhancements include:

  • Unified Patch Fetcher: The tool can now download patches from
    diverse sources, including direct URLs, GitHub, AOSP, and kernel.org,
    using prefixes like github:, aosp:, etc.

  • Intelligent Assistance for SVN:

    • Dependency Reminders: Automatically detects Fixes: tags in
      patch metadata and issues a prominent warning, advising manual
      verification in SVN environments where git log is unavailable.
    • Symbol/API Pre-warning: Proactively analyzes symbols (functions,
      variables) in a patch and checks for their existence in the
      current codebase to warn about potential API changes or renames
      before attempting to apply the patch.
    • Smart Fuzz Matching: Automatically retries failed patch applications
      with increasing fuzz factors (-F1 to -F3), reporting the level
      at which a patch succeeds.
  • Local Knowledge Base (Metadata Cache):

    • Introduces a patch_knowledge_base directory to create a persistent
      cache for each processed patch.
    • Stores critical information such as affected files, full metadata,
      dependency (Fixes:) info, and symbol lists.
    • This lays the groundwork for future advanced cross-patch analysis
      and provides a "memory" for the tool.