Added compatibility with backported kernels.

Fix GLIBC_2.38 requirement for CI
GCC 12 is allready installed.
This commit is contained in:
Carlos Garcés
2023-10-22 14:40:19 +00:00
parent fb0d92a308
commit e7954c912f
2 changed files with 28 additions and 28 deletions

View File

@@ -35,12 +35,11 @@ jobs:
[ -z "$AMD64_DEB" ] && exit 2
wget -nv ${KERNEL_URL}v${VERSION}/$AMD64_DEB
wget -nv ${KERNEL_URL}v${VERSION}/$ALL_DEB
wget -nv http://mirrors.kernel.org/ubuntu/pool/main/g/glibc/libc6_2.38-1ubuntu6_amd64.deb
sudo dpkg --force-all -i *.deb
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
echo "KVER=$(echo $ALL_DEB | cut -d '_' -f 2 | rev | cut -c14- | rev)-generic" >> $GITHUB_ENV
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 12
- uses: actions/checkout@v2
- name: build
run: make KVER=$KVER CONFIG_PLATFORM_I386_PC=y CC=cc

View File

@@ -226,10 +226,11 @@ typedef void *timer_hdl_context;
3f6cffb8604b537e3d7ea040d7f4368689638eaf
adeef3e32146a8d2a73c399dc6f5d76a449131b1
*/
static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr)
static inline void rtw_eth_hw_addr_set(struct net_device *dev, const u8 *addr)
{
memcpy(dev->dev_addr, addr, ETH_ALEN);
}
#define eth_hw_addr_set rtw_eth_hw_addr_set
#endif
typedef unsigned long systime;