export LINUX_SRC_DIR=/home/hasu0707/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.10.36
export INCLUDE_DIR=/home/hasu0707/openwrt/staging_dir/host/include
export OUTPUT_DIR=/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x
make -C ${LINUX_SRC_DIR} \
HOSTCFLAGS="-O2 -I${INCLUDE_DIR} -Wall -Wmissing-prototypes -Wstrict-prototypes" \
CROSS_COMPILE="mipsel-openwrt-linux-uclibc-" \
ARCH="mips" \
KBUILD_HAVE_NLS=no \
CONFIG_SHELL="/bin/bash" \
V=''
mipsel-openwrt-linux-uclibc-objcopy \
-O binary \
-R .reginfo \
-R .notes \
-R .note \
-R .comment \
-R .mdebug \
-R .note.gnu.build-id \
-S ${OUTPUT_DIR}/linux-3.10.36/vmlinux \
${OUTPUT_DIR}/vmlinux
mipsel-openwrt-linux-uclibc-objcopy \
-R .reginfo \
-R .notes \
-R .note \
-R .comment \
-R .mdebug \
-R .note.gnu.build-id \
-S ${OUTPUT_DIR}/linux-3.10.36/vmlinux \
${OUTPUT_DIR}/vmlinux.elf