I'd suggest you first creating a branch starting from the commit that's definitely older than the one the vendor version is based on.
Then you should checkout to that new branch, and synchronize the working copy with your vendor sources. To do that, you should delete all source files from the working copy (be sure to skip .git
and .gitignore
files!), and then copy your code there. You could try using rsync
for that.
After that, you can use git diff
to see what changes were made.
Commit these changes into the new branch with git commit
.
Now switch to the master branch (git checkout master
), and rebase your new branch onto it (git rebase new-branch
). The changes that were in both branches (they appear since you don't know the exact commit, on which the vendor's kernel is based) will be automatically merged, and will cause no conflicts. Other conflicts have to be resolved.
After a successful rebase, your HEAD commit will contain the changes made by your vendor.
I hope this will work for a version that old.