Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

3.7: generate complete OE recipe

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information...
commit 8500f99283d45f5fd36c36ad5d1fb109aee07b46 1 parent d38a247
@koenkooi koenkooi authored
Showing with 36 additions and 3 deletions.
  1. +1 −0  .gitignore
  2. +18 −3 patch.sh
  3. +17 −0 recipes/linux-mainline_3.7.bb
View
1  .gitignore
@@ -1,4 +1,5 @@
export
+export-oe
kernel
patch_script.sh
View
21 patch.sh
@@ -12,6 +12,10 @@ DIR="$PWD"
PATCHPATH="${DIR}/patches"
EXPORTPATH="${DIR}/export"
+RECIPEDIR="linux-mainline-3.7"
+RECIPENAME="linux-mainline_3.7.bb"
+RECIPEFILE="${DIR}/recipes/${RECIPENAME}"
+
#For TAG, use mainline Kernel tags
TAG="v3.7-rc4"
EXTRATAG=""
@@ -70,6 +74,7 @@ git describe
if [ -d ${EXPORTPATH} ] ; then
rm -rf ${EXPORTPATH} || true
+ rm -rf ${EXPORTPATH}-oe || true
fi
# apply patches
@@ -90,8 +95,12 @@ for patchset in ${PATCHSET} ; do
git commit --allow-empty -a -m "${TAG}-${patchset}${EXTRATAG}"
done
-if [ -f ${DIR}/src-uri.txt ] ; then
- rm -rf ${DIR}/src-uri.txt || true
+mkdir -p ${EXPORTPATH}-oe/recipes-kernel/linux
+cp ${RECIPEFILE} ${EXPORTPATH}-oe/recipes-kernel/linux/
+
+if [ "${EXTERNAL_TREE}" ] ; then
+ echo 'SRCREV_pn-${PN} = "${EXTERNAL_SHA}"' >> ${EXPORTPATH}-oe/recipes-kernel/linux/${RECIPENAME}
+ echo >> ${EXPORTPATH}-oe/recipes-kernel/linux/${RECIPENAME}
fi
if [ -f ${DIR}/patch_script.sh ] ; then
@@ -102,8 +111,14 @@ fi
for patchset in ${PATCHSET} ; do
for patch in $(ls -1 ${EXPORTPATH}/$patchset/*.patch | sort -n) ; do
patch=${patch##*/}
- echo -e "\tfile://${patchset}/$patch \\" >> ${DIR}/src-uri.txt
+ echo -e "\tfile://${patchset}/$patch \\" >> ${EXPORTPATH}-oe/recipes-kernel/linux/${RECIPENAME}
echo " git am \"\${DIR}/patches/${patchset}/$patch\"" >> ${DIR}/patch_script.sh
done
done
+mkdir -p ${EXPORTPATH}-oe/recipes-kernel/linux/${RECIPEDIR}
+cp -a ${EXPORTPATH}/* ${EXPORTPATH}-oe/recipes-kernel/linux/${RECIPEDIR}/
+
+if [ -e ${DIR}/kernel/.config ] ; then
+ cp ${DIR}/kernel/.config ${EXPORTPATH}-oe/recipes-kernel/linux/${RECIPEDIR}/defconfig
+fi
View
17 recipes/linux-mainline_3.7.bb
@@ -0,0 +1,17 @@
+require linux.inc
+
+DESCRIPTION = "Linux kernel"
+KERNEL_IMAGETYPE = "uImage"
+
+COMPATIBLE_MACHINE = "(beaglebone)"
+
+# The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc
+MACHINE_KERNEL_PR_append = "a"
+
+FILESPATH =. "${FILE_DIRNAME}/linux-mainline-3.7:${FILE_DIRNAME}/linux-mainline-3.7/${MACHINE}:"
+
+S = "${WORKDIR}/git"
+
+PV = "3.7.0"
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.