摘要 |
The invention relates to a method for adapting hardware-dependent software (SW) to hardware, which improves the adaptation of the hardware-dependent software to a new hardware configuration. The software (SW), in particular a binary image (BI), can be executed in hardware (HW) that constitutes an automation device (A1, A2, A3, A5, A6). A configuration (K1) of the hardware (K1) is stored in the software (SW). According to said method, during the runup of the software (SW) in the automation device (A1, A2, A3, A5, A6), the configuration (K1, K2, K3) of the hardware (HW) is identified and compared with the first stored configuration (K1). If a different configuration (K1, K2, K3) is identified, the software (SW) is modified by the use of adaptation information (AI), in such a way that the software (SW) can be executed in the automation device (A1, A2, A3, A5, A6) with a different configuration (K2, K3). |