fix(local-build): Use feeds path for toolchain package builds

- Change build path from package/secubox/ to package/feeds/secubox/
- Add -f flag to force install from secubox feed
- Add verification that package exists after feed install

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-02-02 07:40:29 +01:00
parent bae3b3f0c4
commit f8016cb12e

View File

@ -1591,7 +1591,16 @@ run_build_openwrt() {
./scripts/feeds install -a golang ./scripts/feeds install -a golang
fi fi
./scripts/feeds install -p secubox "$dir_name" # Force install from secubox feed (override any conflicts)
./scripts/feeds install -f -p secubox "$dir_name"
# Verify package is installed
if [[ ! -d "package/feeds/secubox/$dir_name" ]]; then
print_error "Package $dir_name not found in feeds after install"
print_info "Check if package exists in package/secubox/$dir_name"
cd - > /dev/null
return 1
fi
# Configure build for target architecture (mochabin = mvebu/cortexa72) # Configure build for target architecture (mochabin = mvebu/cortexa72)
print_header "Configuring Build" print_header "Configuring Build"
@ -1626,8 +1635,8 @@ run_build_openwrt() {
print_info "This may take several minutes on first build..." print_info "This may take several minutes on first build..."
echo "" echo ""
# Build from SecuBox feed (package/secubox/...) # Build from SecuBox feed (via feeds system)
if make package/secubox/"$dir_name"/compile V=s; then if make package/feeds/secubox/"$dir_name"/compile V=s; then
print_success "Package built successfully" print_success "Package built successfully"
# Find and display built package (search by actual package name) # Find and display built package (search by actual package name)