summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index afe7547..9214edf 100644
--- a/Makefile
+++ b/Makefile
@@ -33,12 +33,20 @@ ${SOPC_FILE}:ans.stamp
source.stamp:${SRC}
touch source.stamp
+src/Makefile: bsp.stamp
+ nios2-app-generate-makefile --bsp-dir bsp --src-rdir src --app-dir src
+
bsp.stamp:${SOPC_FILE}
/bin/rm -rf ${BSP_DIR}
mkdir -p ${BSP_DIR}
tools/wrap nios2-bsp ${BSP_TYPE} ${BSP_DIR} ${SOPC_FILE} ${NIOS2_BSP_ARGS} ${CPU_NAME}
tools/wrap make -C ${BSP_DIR}
touch $@
+
+clean:
+ /bin/rm -rf ${BSP_DIR}
+ /bin/rm -f ${SOPC_FILE} src/Makefile
+
#