#!/bin/sh

source ../Config.sh

pp_copyincl_local () {
    echo "uClibc must be installed seperately into SDK"
}

pp_build_local () {
    if [ "${PP_PRODUCT}" = "kx2" ]; then
	cfg_file="extra/Configs/Config.${PP_BUILD_ARCH}-locale.default"
    else
	cfg_file="extra/Configs/Config.${PP_BUILD_ARCH}.default"
    fi
    if [ ! -f .config ] || ! cmp -s .config "${cfg_file}"; then
	cp -p "${cfg_file}" .config
	make oldconfig
    fi
    make all install fw_install
}

pp_do "$@"
